- java.lang.Object
-
- java.lang.Enum<Span.Kind>
-
- brave.Span.Kind
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENTCONSUMERWhen present,Span.start()is the moment a consumer received a message from an origin.PRODUCERWhen present,Span.start()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.KindvalueOf(java.lang.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.start()is the moment a producer sent a message to a destination. A duration betweenSpan.start()andSpan.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, theCONSUMERof the same message hasTraceContext.parentId()set to this span'sTraceContext.spanId().
-
CONSUMER
public static final Span.Kind CONSUMER
When present,Span.start()is the moment a consumer received a message from an origin. A duration betweenSpan.start()andSpan.finish()may imply a processing backlog. whileSpan.remoteEndpoint(Endpoint)indicates the origin, such as a broker.Unlike
SERVER, messaging spans never share a span ID. For example, thePRODUCERof this message is theTraceContext.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(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-