Enum Class TraceRequestAttributes

java.lang.Object
java.lang.Enum<TraceRequestAttributes>
io.micronaut.tracing.opentracing.instrument.http.TraceRequestAttributes
All Implemented Interfaces:
Serializable, CharSequence, Comparable<TraceRequestAttributes>, Constable

public enum TraceRequestAttributes extends Enum<TraceRequestAttributes> implements CharSequence
Constants used to store Spans in instrumented request attributes.
Since:
1.0
Author:
graemerocher
  • Enum Constant Details

    • CURRENT_SPAN

      public static final TraceRequestAttributes CURRENT_SPAN
      The attribute used to store the current span.
    • CURRENT_SCOPE

      public static final TraceRequestAttributes CURRENT_SCOPE
      The attribute used to store the current scope.
    • CURRENT_SPAN_CONTEXT

      public static final TraceRequestAttributes CURRENT_SPAN_CONTEXT
      The attribute used to store the current span context.
  • Method Details

    • values

      public static TraceRequestAttributes[] 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 TraceRequestAttributes 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
    • length

      public int length()
      Specified by:
      length in interface CharSequence
    • charAt

      public char charAt(int index)
      Specified by:
      charAt in interface CharSequence
    • subSequence

      @NonNull public @NonNull CharSequence subSequence(int start, int end)
      Specified by:
      subSequence in interface CharSequence
    • toString

      public String toString()
      Specified by:
      toString in interface CharSequence
      Overrides:
      toString in class Enum<TraceRequestAttributes>