OpenTelemetry::API::AbstractSpanContext
Inherits Struct / Value / Object
Constructors
new(trace_id, span_id, parent_id, trace_flags, trace_state, remote = 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=(remote : Bool)
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. This is probably going to be a property
trace_state=(trace_state : Hash(String, String))
Source