OpenTelemetry::API::SpanContext
Inherits OpenTelemetry::API::AbstractSpanContext / Struct / Value / Object
Constructors
new(trace_id : Slice(UInt8), span_id : Slice(UInt8), parent_id : Slice(UInt8) | Nil, trace_flags : OpenTelemetry::API::TraceFlags, trace_state : Hash(String, String), remote : Bool = false)
Sourcenew(inherited_context : SpanContext)
Sourcenew(configuration : Config)
Sourcenew
SourceClass methods
build(inherited_context : SpanContext | Nil = nil, &)
SourceInstance methods
[](val)
Source[]=(val, val2)
Source[]?(val)
Sourceis_remote
The spec dictates that this name be available: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#isvalid
is_valid
The spec dictates that this name be available: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#isvalid
parent_id=(parent_id : Slice(UInt8) | Nil)
Sourceremote?
Sourcespan_id=(span_id : Slice(UInt8))
Sourcetrace_flags=(trace_flags : TraceFlags)
Sourcetrace_id=(trace_id : Slice(UInt8))
Sourcetrace_state
TODO: We're currenty playing fast and loose with TraceState. TraceState, per the spec, should be immutable, however, so this will need to be revised.
trace_state=(trace_state : Hash(String, String))
TODO: We're currenty playing fast and loose with TraceState. TraceState, per the spec, should be immutable, however, so this will need to be revised.