View Source otel_id_generator behaviour (opentelemetry v1.3.0)
Link to this section 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 idLink to this section Types
-type t() :: module().
Link to this section Callbacks
-callback generate_span_id() -> opentelemetry:span_id().
-callback generate_trace_id() -> opentelemetry:trace_id().
Link to this section 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