Package io.sentry

Enum Class SentryOpenTelemetryMode

java.lang.Object
java.lang.Enum<SentryOpenTelemetryMode>
io.sentry.SentryOpenTelemetryMode
All Implemented Interfaces:
Serializable, Comparable<SentryOpenTelemetryMode>, Constable

public enum SentryOpenTelemetryMode extends Enum<SentryOpenTelemetryMode>
Configures the SDK to either automatically determine if OpenTelemetry is available, whether to use it and what way to use it in.
  • Enum Constant Details

    • AUTO

      public static final SentryOpenTelemetryMode AUTO
      Let the SDK figure out what mode OpenTelemetry is in and whether to even use OpenTelemetry This is the default for non Android.
    • OFF

      public static final SentryOpenTelemetryMode OFF
      Do not try to use OpenTelemetry, even if it is available. This is the default for Android.
    • AGENT

      public static final SentryOpenTelemetryMode AGENT
      The `sentry-opentelemetry-agent` is used
    • AGENTLESS

      public static final SentryOpenTelemetryMode AGENTLESS
      `sentry-opentelemetry-agentless` is used, meaning OpenTelemetry will be used but there is no auto instrumentation available.
    • AGENTLESS_SPRING

      public static final SentryOpenTelemetryMode AGENTLESS_SPRING
      `sentry-opentelemetry-agentless-spring-boot` is used, meaning `opentelemetry-spring-boot-starter` and its auto instrumentation is used.
  • Method Details

    • values

      public static SentryOpenTelemetryMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SentryOpenTelemetryMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null