Created
April 24, 2023 14:53
-
-
Save minostro/168f01a855ee29be2fece5819191cd16 to your computer and use it in GitHub Desktop.
Sentry Connection
Sentry Connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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