struct OpenTelemetry::Propagation::TraceContext::TraceParent

Defined in:

propagation/trace_context/trace_parent.cr

Constant Summary

MATCH = /^(?<version>[A-Fa-f0-9]{2})-(?<trace_id>[A-Fa-f0-9]{32})-(?<span_id>[A-Fa-f0-9]{16})-(?<flags>[A-Fa-f0-9]{2})(?<ignored>-.*)?$/
VERSION_MATCH = /(?<version>[A-Fa-f0-9]{2})/

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(version, trace_id, span_id, trace_flags) #

def self.new(trace_id, span_id, trace_flags) #

def self.new(parts : Array(String)) #

def self.new #

Class Method Detail

def self.from_span_context(ctx : SpanContext) #

def self.from_string(traceparent : String) #

def self.valid?(traceparent : String) #

Instance Method Detail

def span_id : Bytes #

def span_id=(span_id : Bytes) #

def to_s(io) #

def trace_flags : TraceFlags #

def trace_flags=(trace_flags : TraceFlags) #

def trace_id : Bytes #

def trace_id=(trace_id : Bytes) #

def valid? #

def version : Bytes #

def version=(version : Bytes) #