public static enum Span.Kind extends Enum<Span.Kind>
Enum Constant and 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 |
Modifier and Type | Method and 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.
|
public static final Span.Kind CLIENT
public static final Span.Kind SERVER
public static final Span.Kind PRODUCER
Span.timestamp()
is the moment a producer sent a message to a destination.
Span.duration()
represents delay sending the message, such as batching, while Span.remoteEndpoint()
indicates the destination, such as a broker.
Unlike CLIENT
, messaging spans never share a span ID. For example, the CONSUMER
of the same message has Span.parentId()
set to this span's Span.id()
.
public static final Span.Kind CONSUMER
Span.timestamp()
is the moment a consumer received a message from an
origin. Span.duration()
represents delay consuming the message, such as from backlog,
while Span.remoteEndpoint()
indicates the origin, such as a broker.
Unlike SERVER
, messaging spans never share a span ID. For example, the PRODUCER
of this message is the Span.parentId()
of this span.
public static Span.Kind[] values()
for (Span.Kind c : Span.Kind.values()) System.out.println(c);
public static Span.Kind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015–2018 OpenZipkin. All rights reserved.