struct OpenTelemetry::Propagation::TraceContext

Defined in:

propagation/trace_context.cr
propagation/trace_context/trace_parent.cr

Constant Summary

FIELDS = {"traceparent", "tracestate"}
TRACEPARENT_KEY = "traceparent"
TRACESTATE_KEY = "tracestate"

Constructors

Instance Method Summary

Constructor Detail

def self.new(trace_parent : TraceParent, context : Context = OpenTelemetry::Context.current) #

def self.new(span_context : SpanContext, context : Context = OpenTelemetry::Context.current) #

def self.new #

Instance Method Detail

def context : Context | Nil #

def context=(context : Context | Nil) #

def extract(carrier, context : Context | Nil = nil, getter : TextMapGetter.class = TextMapGetter) #

def fields #

def inject(carrier, context : Context | Nil = nil, setter : TextMapSetter.class = TextMapSetter) #

def span_id #

def span_id=(value : Slice(UInt8)) #

def span_id=(value) #

def trace_flags #

def trace_flags=(value : Slice(UInt8)) #

def trace_flags=(value : String) #

def trace_flags=(value) #

def trace_id #

def trace_id=(value : Slice(UInt8)) #

def trace_id=(value) #

def trace_parent : TraceParent #

def trace_parent=(trace_parent : TraceParent) #

def traceparent(io) #

def traceparent #

def tracestate(ctx : Context) #

def tracestate(ctx : SpanContext) #

def tracestate #

def version #

def version=(value : Slice(UInt8)) #

def version=(value) #