Package io.sentry

Class SentryBaseEvent

Direct Known Subclasses:
SentryEvent, SentryReplayEvent, SentryTransaction

public abstract class SentryBaseEvent extends Object
An item sent to Sentry in the envelope. Can be either SentryEvent or the Performance transaction.
  • Field Details


      public static final String DEFAULT_PLATFORM
      See Also:
    • throwable

      @Nullable protected transient @Nullable Throwable throwable
      The captured Throwable
  • Constructor Details

    • SentryBaseEvent

      protected SentryBaseEvent(@NotNull @NotNull SentryId eventId)
    • SentryBaseEvent

      protected SentryBaseEvent()
  • Method Details

    • getEventId

      @Nullable public @Nullable SentryId getEventId()
    • setEventId

      public void setEventId(@Nullable @Nullable SentryId eventId)
    • getContexts

      @NotNull public @NotNull Contexts getContexts()
    • getSdk

      @Nullable public @Nullable SdkVersion getSdk()
    • setSdk

      public void setSdk(@Nullable @Nullable SdkVersion sdk)
    • getRequest

      @Nullable public @Nullable Request getRequest()
    • setRequest

      public void setRequest(@Nullable @Nullable Request request)
    • getThrowable

      @Nullable public @Nullable Throwable getThrowable()
      Returns the captured Throwable or null. If a throwable is wrapped in ExceptionMechanismException, returns unwrapped throwable.
      the Throwable or null
    • getThrowableMechanism

      @Internal @Nullable public @Nullable Throwable getThrowableMechanism()
      Returns the captured Throwable or null. It may be wrapped in a ExceptionMechanismException.
      the Throwable or null
    • setThrowable

      public void setThrowable(@Nullable @Nullable Throwable throwable)
      Sets the Throwable
      throwable - the Throwable or null
    • getTags

      @Internal @Nullable public @Nullable Map<String,String> getTags()
    • setTags

      public void setTags(@Nullable @Nullable Map<String,String> tags)
    • removeTag

      public void removeTag(@NotNull @NotNull String key)
    • getTag

      @Nullable public @Nullable String getTag(@NotNull @NotNull String key)
    • setTag

      public void setTag(@NotNull @NotNull String key, @NotNull @NotNull String value)
    • getRelease

      @Nullable public @Nullable String getRelease()
    • setRelease

      public void setRelease(@Nullable @Nullable String release)
    • getEnvironment

      @Nullable public @Nullable String getEnvironment()
    • setEnvironment

      public void setEnvironment(@Nullable @Nullable String environment)
    • getPlatform

      @Nullable public @Nullable String getPlatform()
    • setPlatform

      public void setPlatform(@Nullable @Nullable String platform)
    • getServerName

      @Nullable public @Nullable String getServerName()
    • setServerName

      public void setServerName(@Nullable @Nullable String serverName)
    • getDist

      @Nullable public @Nullable String getDist()
    • setDist

      public void setDist(@Nullable @Nullable String dist)
    • getUser

      @Nullable public @Nullable User getUser()
    • setUser

      public void setUser(@Nullable @Nullable User user)
    • getBreadcrumbs

      @Nullable public @Nullable List<Breadcrumb> getBreadcrumbs()
    • setBreadcrumbs

      public void setBreadcrumbs(@Nullable @Nullable List<Breadcrumb> breadcrumbs)
    • addBreadcrumb

      public void addBreadcrumb(@NotNull @NotNull Breadcrumb breadcrumb)
    • getDebugMeta

      @Nullable public @Nullable DebugMeta getDebugMeta()
    • setDebugMeta

      public void setDebugMeta(@Nullable @Nullable DebugMeta debugMeta)
    • getExtras

      @Nullable public @Nullable Map<String,Object> getExtras()
    • setExtras

      public void setExtras(@Nullable @Nullable Map<String,Object> extra)
    • setExtra

      public void setExtra(@NotNull @NotNull String key, @NotNull @NotNull Object value)
    • removeExtra

      public void removeExtra(@NotNull @NotNull String key)
    • getExtra

      @Nullable public @Nullable Object getExtra(@NotNull @NotNull String key)
    • addBreadcrumb

      public void addBreadcrumb(@Nullable @Nullable String message)