Package io.sentry

Enum Class ScopeBindingMode

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

public enum ScopeBindingMode extends Enum<ScopeBindingMode>
  • Enum Constant Details

    • AUTO

      public static final ScopeBindingMode 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

      public static final ScopeBindingMode ON
      Set the new span on the current scope.
    • OFF

      public static final ScopeBindingMode OFF
      Do not set the new span on the scope.
  • Method Details

    • values

      public static ScopeBindingMode[] 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 ScopeBindingMode 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