Serializable, Comparable<Span.Kind>public static enum Span.Kind extends Enum<Span.Kind>
| Enum Constant | Description |
|---|---|
CLIENT |
|
CONSUMER |
When present,
Span.start() is the moment a consumer received a message from an origin. |
PRODUCER |
When present,
Span.start() is the moment a producer sent a message to a destination. |
SERVER |
| 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.
|
public static final Span.Kind CLIENT
public static final Span.Kind SERVER
public static final Span.Kind PRODUCER
Span.start() is the moment a producer sent a message to a destination. A
duration between Span.start() and Span.finish() may imply batching delay. Span.remoteEndpoint(Endpoint) 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 TraceContext.parentId() set to this span's TraceContext.spanId().
public static final Span.Kind CONSUMER
Span.start() is the moment a consumer received a message from an origin. A
duration between Span.start() and Span.finish() may imply a processing backlog. while
Span.remoteEndpoint(Endpoint) 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 TraceContext.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 © 2017 OpenZipkin. All rights reserved.