Package io.sentry
Enum Class SentryOpenTelemetryMode
- All Implemented Interfaces:
Serializable
,Comparable<SentryOpenTelemetryMode>
,Constable
Configures the SDK to either automatically determine if OpenTelemetry is available, whether to
use it and what way to use it in.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe `sentry-opentelemetry-agent` is used`sentry-opentelemetry-agentless` is used, meaning OpenTelemetry will be used but there is no auto instrumentation available.`sentry-opentelemetry-agentless-spring-boot` is used, meaning `opentelemetry-spring-boot-starter` and its auto instrumentation is used.Let the SDK figure out what mode OpenTelemetry is in and whether to even use OpenTelemetry This is the default for non Android.Do not try to use OpenTelemetry, even if it is available. -
Method Summary
Modifier and TypeMethodDescriptionstatic SentryOpenTelemetryMode
Returns the enum constant of this class with the specified name.static SentryOpenTelemetryMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Do not try to use OpenTelemetry, even if it is available. This is the default for Android. -
AGENT
The `sentry-opentelemetry-agent` is used -
AGENTLESS
`sentry-opentelemetry-agentless` is used, meaning OpenTelemetry will be used but there is no auto instrumentation available. -
AGENTLESS_SPRING
`sentry-opentelemetry-agentless-spring-boot` is used, meaning `opentelemetry-spring-boot-starter` and its auto instrumentation is used.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-