struct OpenTelemetry::IdGenerator::Unique

Overview

This ID Generator returns guaranteed unique (within the process) IDs which are chronologically and logically sortable.

Defined in:

opentelemetry-api/id_generator/unique.cr

Instance Method Summary

Instance methods inherited from struct OpenTelemetry::IdGenerator::Base

initialize initialize, span_id span_id, trace_id trace_id

Constructor methods inherited from struct OpenTelemetry::IdGenerator::Base

new new

Instance Method Detail

def span_id #
Description copied from struct OpenTelemetry::IdGenerator::Base

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]
def trace_id #
Description copied from struct OpenTelemetry::IdGenerator::Base

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]