Skip to content

Instantly share code, notes, and snippets.

@minostro
Created April 24, 2023 14:53
Show Gist options
  • Save minostro/168f01a855ee29be2fece5819191cd16 to your computer and use it in GitHub Desktop.
Save minostro/168f01a855ee29be2fece5819191cd16 to your computer and use it in GitHub Desktop.
Sentry Connection Sentry Connection
public interface Connection extends Closeable {
/**
* Sends an event to the Sentry server.
*
* @param event captured event to add in Sentry.
* @throws ConnectionException Thrown when an Event send fails.
*/
void send(Event event) throws ConnectionException;
/**
* Add a callback that is called when an exception occurs while attempting to
* send events to the Sentry server.
*
* @param eventSendCallback callback instance
*/
void addEventSendCallback(EventSendCallback eventSendCallback);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment