Package io.opentelemetry.api.trace
Enum SpanKind
- All Implemented Interfaces:
Serializable
,Comparable<SpanKind>
,java.lang.constant.Constable
Type of
Span
. Can be used to specify additional relationships between spans in addition
to a parent/child relationship.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that the span covers the client-side wrapper around an RPC or other remote request.Indicates that the span describes consumer receiving a message from a broker.Default value.Indicates that the span describes producer sending a message to a broker.Indicates that the span covers server-side handling of an RPC or other remote request. -
Method Summary
-
Enum Constant Details
-
INTERNAL
Default value. Indicates that the span is used internally. -
SERVER
Indicates that the span covers server-side handling of an RPC or other remote request. -
CLIENT
Indicates that the span covers the client-side wrapper around an RPC or other remote request. -
PRODUCER
Indicates that the span describes producer sending a message to a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans. -
CONSUMER
Indicates that the span describes consumer receiving a message from a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-