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
Constants used to store
Span
s in instrumented request attributes.- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe attribute used to store the current scope.The attribute used to store the current span.The attribute used to store the current span context. -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
length()
@NonNull CharSequence
subSequence
(int start, int end) toString()
static TraceRequestAttributes
Returns the enum constant of this class with the specified name.static TraceRequestAttributes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Enum Constant Details
-
CURRENT_SPAN
The attribute used to store the current span. -
CURRENT_SCOPE
The attribute used to store the current scope. -
CURRENT_SPAN_CONTEXT
The attribute used to store the current span context.
-
-
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
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classEnum<TraceRequestAttributes>
-