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

[View source]
def self.new(trace_id, span_id, trace_flags) #

[View source]
def self.new(parts : Array(String)) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.from_span_context(ctx : SpanContext) #

[View source]
def self.from_string(traceparent : String) #

[View source]
def self.valid?(traceparent : String) #

[View source]

Instance Method Detail

def span_id : Bytes #

[View source]
def span_id=(span_id : Bytes) #

[View source]
def to_s(io) #

[View source]
def trace_flags : TraceFlags #

[View source]
def trace_flags=(trace_flags : TraceFlags) #

[View source]
def trace_id : Bytes #

[View source]
def trace_id=(trace_id : Bytes) #

[View source]
def valid? #

[View source]
def version : Bytes #

[View source]
def version=(version : Bytes) #

[View source]