Package zipkin2
Enum Span.Kind
- All Implemented Interfaces:
Serializable
,Comparable<Span.Kind>
- Enclosing class:
- Span
Indicates the primary span type.
-
Enum Constant Summary
Enum ConstantDescriptionWhen present,Span.timestamp()
is the moment a consumer received a message from an origin.When present,Span.timestamp()
is the moment a producer sent a message to a destination. -
Method Summary
-
Enum Constant Details
-
CLIENT
-
SERVER
-
PRODUCER
When present,Span.timestamp()
is the moment a producer sent a message to a destination.Span.duration()
represents delay sending the message, such as batching, whileSpan.remoteEndpoint()
indicates the destination, such as a broker.Unlike
CLIENT
, messaging spans never share a span ID. For example, theCONSUMER
of the same message hasSpan.parentId()
set to this span'sSpan.id()
. -
CONSUMER
When present,Span.timestamp()
is the moment a consumer received a message from an origin.Span.duration()
represents delay consuming the message, such as from backlog, whileSpan.remoteEndpoint()
indicates the origin, such as a broker.Unlike
SERVER
, messaging spans never share a span ID. For example, thePRODUCER
of this message is theSpan.parentId()
of this span.
-
-
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
-