abstract struct OpenTelemetry::IdGenerator::Base

Direct Known Subclasses

Defined in:

opentelemetry-api/id_generator/base.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def initialize #

[View source]
abstract def span_id #

This method will return an ID suitable for use as a Span ID. The standard offered in the open telemetry spec is 64 bits (8 bytes). This is not a hard requirement, however, so subclass implementations can return a different length.


[View source]
abstract def trace_id #

This method will return an ID suitable for use as a Trace ID. The standard offered in the open telemetry spec is 128 bits (16 bytes). This is not a hard requirement, however, so subclass implementations can return a different length.


[View source]