Module: OpenTelemetry::Trace::SpanKind

Defined in:
lib/opentelemetry/trace/span_kind.rb

Overview

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)

Constant Summary collapse

INTERNAL =

Default value. Indicates that the span is used internally.

:internal
SERVER =

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

:server
CLIENT =

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

:client
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.

:producer
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.

:consumer