Annotation Interface EnableSentry


Enables Sentry error handling capabilities.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The DSN tells the SDK where to send the events to.
    int
    Determines whether all web exceptions are reported or only uncaught exceptions.
    Controls the size of the request body to extract if any.
    boolean
    Whether to send personal identifiable information along with events.
  • Element Details

    • dsn

      String dsn
      The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will just not send any events.
      Returns:
      the Sentry DSN
      Default:
      ""
    • sendDefaultPii

      boolean sendDefaultPii
      Whether to send personal identifiable information along with events.
      Returns:
      true if send default PII or false otherwise.
      Default:
      false
    • exceptionResolverOrder

      int exceptionResolverOrder
      Determines whether all web exceptions are reported or only uncaught exceptions.
      Returns:
      the order to use for SentryExceptionResolver
      Default:
      1
    • maxRequestBodySize

      SentryOptions.RequestSize maxRequestBodySize
      Controls the size of the request body to extract if any. No truncation is done by the SDK. If the request body is larger than the accepted size, nothing is sent.
      Default:
      NONE