struct OpenTelemetry::Trace::SpanContext

Overview

The immutable identifiers and propagation state of a span. Concurrency: immutable and safe to share.

Defined in:

api/trace/span_context.cr

Constant Summary

INVALID = new(trace_id: TraceId::INVALID, span_id: SpanId::INVALID)

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, trace_id : TraceId, span_id : SpanId, trace_flags : TraceFlags = TraceFlags::None, trace_state : TraceState = TraceState::EMPTY, remote : Bool = false) #

[View source]

Instance Method Detail

def ==(other : self) #

def hash(hasher) #
Description copied from struct Struct

See Object#hash(hasher)


def hex_span_id : String #

[View source]
def hex_trace_id : String #

[View source]
def remote? : Bool #

[View source]
def sampled? : Bool #

[View source]
def span_id : SpanId #

[View source]
def trace_flags : TraceFlags #

[View source]
def trace_id : TraceId #

[View source]
def trace_state : TraceState #

[View source]
def valid? : Bool #

[View source]