public interface ISentryClient
Modifier and Type | Method and Description |
---|---|
default SentryId |
captureEvent(SentryEvent event)
Captures the event.
|
default SentryId |
captureEvent(SentryEvent event,
@Nullable java.lang.Object hint)
Capture the event
|
default SentryId |
captureEvent(SentryEvent event,
@Nullable Scope scope)
Captures the event.
|
SentryId |
captureEvent(SentryEvent event,
@Nullable Scope scope,
@Nullable java.lang.Object hint)
Capture the event
|
default SentryId |
captureException(java.lang.Throwable throwable)
Captures the exception.
|
default SentryId |
captureException(java.lang.Throwable throwable,
@Nullable java.lang.Object hint)
Captures the exception.
|
default SentryId |
captureException(java.lang.Throwable throwable,
@Nullable Scope scope)
Captures the exception.
|
default SentryId |
captureException(java.lang.Throwable throwable,
@Nullable Scope scope,
@Nullable java.lang.Object hint)
Captures the exception.
|
default SentryId |
captureMessage(java.lang.String message,
SentryLevel level)
Captures the message.
|
default SentryId |
captureMessage(java.lang.String message,
SentryLevel level,
@Nullable Scope scope)
Captures the message.
|
void |
close()
Flushes out the queue for up to timeout seconds and disable the client.
|
void |
flush(long timeoutMills)
Flushes events queued up, but keeps the client enabled.
|
boolean |
isEnabled()
Whether the client is enabled or not
|
boolean isEnabled()
SentryId captureEvent(SentryEvent event, @Nullable @Nullable Scope scope, @Nullable @Nullable java.lang.Object hint)
event
- the eventscope
- An optional scope to be applied to the event.hint
- SDK specific but provides high level information about the origin of the event.void close()
void flush(long timeoutMills)
timeoutMills
- time in millisecondsdefault SentryId captureEvent(SentryEvent event)
event
- the eventdefault SentryId captureEvent(SentryEvent event, @Nullable @Nullable Scope scope)
event
- the eventscope
- An optional scope to be applied to the event.default SentryId captureEvent(SentryEvent event, @Nullable @Nullable java.lang.Object hint)
event
- the eventhint
- SDK specific but provides high level information about the origin of the event.default SentryId captureMessage(java.lang.String message, SentryLevel level, @Nullable @Nullable Scope scope)
message
- The message to send.level
- The message level.scope
- An optional scope to be applied to the event.default SentryId captureMessage(java.lang.String message, SentryLevel level)
message
- The message to send.level
- The message level.default SentryId captureException(java.lang.Throwable throwable)
throwable
- The exception.default SentryId captureException(java.lang.Throwable throwable, @Nullable @Nullable Scope scope, @Nullable @Nullable java.lang.Object hint)
throwable
- The exception.hint
- SDK specific but provides high level information about the origin of the eventscope
- An optional scope to be applied to the event.default SentryId captureException(java.lang.Throwable throwable, @Nullable @Nullable java.lang.Object hint)
throwable
- The exception.hint
- SDK specific but provides high level information about the origin of the event