View Source otel_id_generator behaviour (opentelemetry v1.5.0)
Summary
Functions
Generates a 64 bit random integer to use as a span id.
Calls a module implementing the
otel_id_generator
behaviour to generate a span idGenerates a 128 bit random integer to use as a trace id.
Calls a module implementing the
otel_id_generator
behaviour to generate a trace idTypes
-type t() :: module().
Callbacks
-callback generate_span_id() -> opentelemetry:span_id().
-callback generate_trace_id() -> opentelemetry:trace_id().
Functions
-spec generate_span_id() -> opentelemetry:span_id().
-spec generate_span_id(t()) -> opentelemetry:span_id().
otel_id_generator
behaviour to generate a span id
-spec generate_trace_id() -> opentelemetry:trace_id().
-spec generate_trace_id(t()) -> opentelemetry:trace_id().
otel_id_generator
behaviour to generate a trace id