Package org.bluezoo.gumdrop.telemetry
Enum Class SpanKind
- All Implemented Interfaces:
Serializable,Comparable<SpanKind>,Constable
Indicates the role of a span in a trace.
These values correspond to the OpenTelemetry SpanKind enum.
- Author:
- Chris Burdess
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the span describes a request to some remote service.Indicates that the span describes a consumer receiving a message.Default value.Indicates that the span describes a producer sending a message.Indicates that the span covers server-side handling of a request. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Returns the OTLP numeric value for this span kind.static SpanKindReturns the enum constant of this class with the specified name.static SpanKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTERNAL
Default value. Indicates an internal operation within an application. -
SERVER
Indicates that the span covers server-side handling of a request. -
CLIENT
Indicates that the span describes a request to some remote service. -
PRODUCER
Indicates that the span describes a producer sending a message. -
CONSUMER
Indicates that the span describes a consumer receiving a message.
-
-
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
-
getValue
public int getValue()Returns the OTLP numeric value for this span kind.
-