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) #

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

[View source]
def self.new #

[View source]

Instance Method Detail

def context : Context | Nil #

[View source]
def context=(context : Context | Nil) #

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

[View source]
def fields #

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

[View source]
def span_id #

[View source]
def span_id=(value : Slice(UInt8)) #

[View source]
def span_id=(value) #

[View source]
def trace_flags #

[View source]
def trace_flags=(value : Slice(UInt8)) #

[View source]
def trace_flags=(value : String) #

[View source]
def trace_flags=(value) #

[View source]
def trace_id #

[View source]
def trace_id=(value : Slice(UInt8)) #

[View source]
def trace_id=(value) #

[View source]
def trace_parent : TraceParent #

[View source]
def trace_parent=(trace_parent : TraceParent) #

[View source]
def traceparent(io) #

[View source]
def traceparent #

[View source]
def tracestate(ctx : Context) #

[View source]
def tracestate(ctx : SpanContext) #

[View source]
def tracestate #

[View source]
def version #

[View source]
def version=(value : Slice(UInt8)) #

[View source]
def version=(value) #

[View source]