struct OpenTelemetry::API::SpanContext

Defined in:

api/span_context.cr
api/span_context/config.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct OpenTelemetry::API::AbstractSpanContext

[](val) [], []=(val, val2) []=, []?(val) []?, is_remote is_remote, is_valid is_valid, parent_id : Slice(UInt8)? parent_id, parent_id=(parent_id : Slice(UInt8)?) parent_id=, remote : Bool remote, remote=(remote : Bool) remote=, remote? remote?, span_id : Slice(UInt8) span_id, span_id=(span_id : Slice(UInt8)) span_id=, trace_flags : TraceFlags trace_flags, trace_flags=(trace_flags : TraceFlags) trace_flags=, trace_id : Slice(UInt8) trace_id, trace_id=(trace_id : Slice(UInt8)) trace_id=, trace_state : Hash(String, String) trace_state, trace_state=(trace_state : Hash(String, String)) trace_state=, valid? valid?

Constructor methods inherited from struct OpenTelemetry::API::AbstractSpanContext

new(trace_id, span_id, parent_id, trace_flags, trace_state, remote = false)
new(inherited_context : SpanContext)
new(configuration : Config)
new
new

Class methods inherited from struct OpenTelemetry::API::AbstractSpanContext

build(inherited_context : SpanContext? = nil) build

Constructor Detail

def self.new(trace_id : Slice(UInt8), span_id : Slice(UInt8), parent_id : Slice(UInt8)?, trace_flags : OpenTelemetry::API::TraceFlags, trace_state : Hash(String, String), remote : Bool = false) #

def self.new(inherited_context : SpanContext) #

def self.new(configuration : Config) #

def self.new #

Class Method Detail

def self.build(inherited_context : SpanContext? = nil, &) #

Instance Method Detail

def [](val) #

def []=(val, val2) #

def []?(val) #

def is_remote #

The spec dictates that this name be available: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#isvalid


def is_valid #

The spec dictates that this name be available: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#isvalid


def parent_id : Slice(UInt8)? #
Description copied from struct OpenTelemetry::API::AbstractSpanContext

This is probably going to be a property


def parent_id=(parent_id : Slice(UInt8)?) #

def remote : Bool #
Description copied from struct OpenTelemetry::API::AbstractSpanContext

This is probably going to be a property


def remote=(remote : Bool) #

def remote? #

def span_id : Slice(UInt8) #
Description copied from struct OpenTelemetry::API::AbstractSpanContext

This is probably going to be a property


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

def trace_flags : TraceFlags #
Description copied from struct OpenTelemetry::API::AbstractSpanContext

This is probably going to be a property


def trace_flags=(trace_flags : TraceFlags) #

def trace_id : Slice(UInt8) #
Description copied from struct OpenTelemetry::API::AbstractSpanContext

This is probably going to be a property


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

def trace_state : Hash(String, String) #

TODO We're currenty playing fast and loose with TraceState. TraceState, per the spec, should be immutable, however, so this will need to be revised.


def trace_state=(trace_state : Hash(String, String)) #

TODO We're currenty playing fast and loose with TraceState. TraceState, per the spec, should be immutable, however, so this will need to be revised.


def valid? #

Returns true is the trace id and span id are non-zero