struct OpenTelemetry::Trace::SpanId

Overview

An eight-byte span identifier stored by value. Concurrency: immutable.

Defined in:

api/trace/span_id.cr

Constant Summary

INVALID = new(0_u64)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(value : UInt64) #

[View source]

Class Method Detail

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

[View source]
def self.from_hex(hex : String) : SpanId | 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 to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def to_u64 : UInt64 #

[View source]
def valid? : Bool #

[View source]