module OpenTelemetry::Trace::SpanKind

Type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship. For API ergonomics, use of the symbols rather than the constants may be preferred. For example:

span = tracer.start_span('op', kind: :client)

Constants

CLIENT

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

CONSUMER

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

INTERNAL

Default value. Indicates that the span is used internally.

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.

SERVER

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