public interface ISentryClient
Modifier and Type | Method and Description |
---|---|
default SentryId |
captureEnvelope(SentryEnvelope envelope)
Captures an envelope.
|
SentryId |
captureEnvelope(SentryEnvelope envelope,
@Nullable java.lang.Object hint)
Captures an envelope.
|
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.
|
default void |
captureSession(Session session)
Captures a session.
|
void |
captureSession(Session session,
@Nullable java.lang.Object hint)
Captures a session.
|
void |
close()
Flushes out the queue for up to timeout seconds and disable the client.
|
void |
flush(long timeoutMillis)
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 timeoutMillis)
timeoutMillis
- 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 eventdefault SentryId captureException(java.lang.Throwable throwable, @Nullable @Nullable Scope scope)
throwable
- The exception.scope
- An optional scope to be applied to the event.void captureSession(Session session, @Nullable @Nullable java.lang.Object hint)
hint
- SDK specific but provides high level information about the origin of the eventsession
- the Sessiondefault void captureSession(Session session)
session
- the SessionSentryId captureEnvelope(SentryEnvelope envelope, @Nullable @Nullable java.lang.Object hint)
envelope
- the SentryEnvelope to send.hint
- SDK specific but provides high level information about the origin of the eventdefault SentryId captureEnvelope(SentryEnvelope envelope)
envelope
- the SentryEnvelope to send.