struct OpenTelemetry::Propagation::TraceContext
- OpenTelemetry::Propagation::TraceContext
- OpenTelemetry::API::AbstractTextMapPropagator
- Struct
- Value
- Object
Defined in:
propagation/trace_context.crpropagation/trace_context/trace_parent.cr
Constant Summary
-
FIELDS =
{"traceparent", "tracestate"}
-
TRACEPARENT_KEY =
"traceparent"
-
TRACESTATE_KEY =
"tracestate"
Constructors
- .new(trace_parent : TraceParent, context : Context = OpenTelemetry::Context.current)
- .new(span_context : SpanContext, context : Context = OpenTelemetry::Context.current)
- .new
Instance Method Summary
- #context : Context | Nil
- #context=(context : Context | Nil)
- #extract(carrier, context : Context | Nil = nil, getter : TextMapGetter.class = TextMapGetter)
- #fields
- #inject(carrier, context : Context | Nil = nil, setter : TextMapSetter.class = TextMapSetter)
- #span_id
- #span_id=(value : Slice(UInt8))
- #span_id=(value)
- #trace_flags
- #trace_flags=(value : Slice(UInt8))
- #trace_flags=(value : String)
- #trace_flags=(value)
- #trace_id
- #trace_id=(value : Slice(UInt8))
- #trace_id=(value)
- #trace_parent : TraceParent
- #trace_parent=(trace_parent : TraceParent)
- #traceparent(io)
- #traceparent
- #tracestate(ctx : Context)
- #tracestate(ctx : SpanContext)
- #tracestate
- #version
- #version=(value : Slice(UInt8))
- #version=(value)