struct OpenTelemetry::Trace::TraceId

Overview

A sixteen-byte trace identifier stored by value. Concurrency: immutable.

Defined in:

api/trace/trace_id.cr

Constant Summary

INVALID = new(0_u64, 0_u64)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(high : UInt64, low : UInt64) #

[View source]

Class Method Detail

def self.from_bytes(bytes : Bytes) : TraceId | Nil #

[View source]
def self.from_hex(hex : String) : TraceId | Nil #

[View source]

Instance Method Detail

def ==(other : self) #

def bytes : Bytes #

[View source]
def hash(hasher) #
Description copied from struct Struct

See Object#hash(hasher)


def hex : String #

[View source]
def high : UInt64 #

[View source]
def low : UInt64 #

[View source]
def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def valid? : Bool #

[View source]