public interface ISentryClient
| Modifier and Type | Method and Description |
|---|---|
default @Nullable SentryId |
captureEnvelope(@NotNull SentryEnvelope envelope)
Captures an envelope.
|
@Nullable SentryId |
captureEnvelope(@NotNull SentryEnvelope envelope,
@Nullable java.lang.Object hint)
Captures an envelope.
|
default @NotNull SentryId |
captureEvent(@NotNull SentryEvent event)
Captures the event.
|
default @NotNull SentryId |
captureEvent(@NotNull SentryEvent event,
@Nullable java.lang.Object hint)
Capture the event
|
default @NotNull SentryId |
captureEvent(@NotNull SentryEvent event,
@Nullable Scope scope)
Captures the event.
|
@NotNull SentryId |
captureEvent(@NotNull SentryEvent event,
@Nullable Scope scope,
@Nullable java.lang.Object hint)
Capture the event
|
default @NotNull SentryId |
captureException(@NotNull java.lang.Throwable throwable)
Captures the exception.
|
default @NotNull SentryId |
captureException(@NotNull java.lang.Throwable throwable,
@Nullable java.lang.Object hint)
Captures the exception.
|
default @NotNull SentryId |
captureException(@NotNull java.lang.Throwable throwable,
@Nullable Scope scope)
Captures the exception.
|
default @NotNull SentryId |
captureException(@NotNull java.lang.Throwable throwable,
@Nullable Scope scope,
@Nullable java.lang.Object hint)
Captures the exception.
|
default @NotNull SentryId |
captureMessage(@NotNull java.lang.String message,
@NotNull SentryLevel level)
Captures the message.
|
default @NotNull SentryId |
captureMessage(@NotNull java.lang.String message,
@NotNull SentryLevel level,
@Nullable Scope scope)
Captures the message.
|
default void |
captureSession(@NotNull Session session)
Captures a session.
|
void |
captureSession(@NotNull Session session,
@Nullable java.lang.Object hint)
Captures a session.
|
default @NotNull SentryId |
captureTransaction(@NotNull SentryTransaction transaction)
Captures a transaction without scope nor hint.
|
@NotNull SentryId |
captureTransaction(@NotNull SentryTransaction transaction,
@Nullable Scope scope,
@Nullable java.lang.Object hint)
Captures a transaction.
|
void |
captureUserFeedback(@NotNull UserFeedback userFeedback)
Captures a manually created user feedback and sends it to Sentry.
|
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()
@NotNull @NotNull SentryId captureEvent(@NotNull @NotNull 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 milliseconds@NotNull default @NotNull SentryId captureEvent(@NotNull @NotNull SentryEvent event)
event - the event@NotNull default @NotNull SentryId captureEvent(@NotNull @NotNull SentryEvent event, @Nullable @Nullable Scope scope)
event - the eventscope - An optional scope to be applied to the event.@NotNull default @NotNull SentryId captureEvent(@NotNull @NotNull SentryEvent event, @Nullable @Nullable java.lang.Object hint)
event - the eventhint - SDK specific but provides high level information about the origin of the event.@NotNull default @NotNull SentryId captureMessage(@NotNull @NotNull java.lang.String message, @NotNull @NotNull 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.@NotNull default @NotNull SentryId captureMessage(@NotNull @NotNull java.lang.String message, @NotNull @NotNull SentryLevel level)
message - The message to send.level - The message level.@NotNull default @NotNull SentryId captureException(@NotNull @NotNull java.lang.Throwable throwable)
throwable - The exception.@NotNull default @NotNull SentryId captureException(@NotNull @NotNull 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.@NotNull default @NotNull SentryId captureException(@NotNull @NotNull 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@NotNull default @NotNull SentryId captureException(@NotNull @NotNull java.lang.Throwable throwable, @Nullable @Nullable Scope scope)
throwable - The exception.scope - An optional scope to be applied to the event.void captureUserFeedback(@NotNull
@NotNull UserFeedback userFeedback)
userFeedback - The user feedback to send to Sentry.void captureSession(@NotNull
@NotNull 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(@NotNull
@NotNull Session session)
session - the Session@Nullable @Nullable SentryId captureEnvelope(@NotNull @NotNull 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 event@Nullable default @Nullable SentryId captureEnvelope(@NotNull @NotNull SentryEnvelope envelope)
envelope - the SentryEnvelope to send.@NotNull @NotNull SentryId captureTransaction(@NotNull @NotNull SentryTransaction transaction, @Nullable @Nullable Scope scope, @Nullable @Nullable java.lang.Object hint)
transaction - the ITransaction to sendscope - An optional scope to be applied to the event.hint - SDK specific but provides high level information about the origin of the event@NotNull default @NotNull SentryId captureTransaction(@NotNull @NotNull SentryTransaction transaction)
transaction - the ITransaction to send