Package zipkin2
Enum Span.Kind
- java.lang.Object
-
- java.lang.Enum<Span.Kind>
-
- zipkin2.Span.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<Span.Kind>
- Enclosing class:
- Span
public static enum Span.Kind extends Enum<Span.Kind>
Indicates the primary span type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT
CONSUMER
When present,Span.timestamp()
is the moment a consumer received a message from an origin.PRODUCER
When present,Span.timestamp()
is the moment a producer sent a message to a destination.SERVER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Span.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static Span.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT
public static final Span.Kind CLIENT
-
SERVER
public static final Span.Kind SERVER
-
PRODUCER
public static final Span.Kind 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
public static final Span.Kind 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 Detail
-
values
public static Span.Kind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Span.Kind c : Span.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Span.Kind valueOf(String name)
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
-
-