Top Description Fields Constructors Methods
io.opentelemetry.api.trace

public final Enum SpanKind

extends Enum<SpanKind>
Class Inheritance

Type of Span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.

Field Summary

Modifier and TypeField and Description
public static final SpanKind
CLIENT

Indicates that the span covers the client-side wrapper around an RPC or other remote request.

public static final SpanKind
CONSUMER

Indicates that the span describes consumer receiving a message from a broker.

public static final SpanKind
INTERNAL

Default value.

public static final SpanKind
PRODUCER

Indicates that the span describes producer sending a message to a broker.

public static final SpanKind
SERVER

Indicates that the span covers server-side handling of an RPC or other remote request.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SpanKind
public static SpanKind[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLIENTback to summary
public static final SpanKind CLIENT

Indicates that the span covers the client-side wrapper around an RPC or other remote request.

CONSUMERback to summary
public static final SpanKind CONSUMER

Indicates that the span describes consumer receiving a message from a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans.

INTERNALback to summary
public static final SpanKind INTERNAL

Default value. Indicates that the span is used internally.

PRODUCERback to summary
public static final SpanKind PRODUCER

Indicates that the span describes producer sending a message to a broker. Unlike client and server, there is no direct critical path latency relationship between producer and consumer spans.

SERVERback to summary
public static final SpanKind SERVER

Indicates that the span covers server-side handling of an RPC or other remote request.

Constructor Detail

SpanKindback to summary
private SpanKind()

Method Detail

valueOfback to summary
public static SpanKind valueOf(String name)
valuesback to summary
public static SpanKind[] values()