Package io.sentry
Enum Class ScopeBindingMode
- All Implemented Interfaces:
Serializable
,Comparable<ScopeBindingMode>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeBindingMode
Returns the enum constant of this class with the specified name.static ScopeBindingMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Let the SDK decide whether to add the span to the current scope.The SDK will try to find the parent span on the scope to make the decision. If the parent span is on the scope, the SDK will put the new span on the scope as well.
This does not apply to transactions. If you want to have a transaction bound to scope, please use ON instead.
-
ON
Set the new span on the current scope. -
OFF
Do not set the new span on the scope.
-
-
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
-