Skip to main content
Version: 0.12

otel


CNCF OpenTelemetry utility functions

  • span_id - OpenTelemetry Span Id utilities
  • trace_id - OpenTelemetry Trace Id utilities
  • logs - OpenTelemetry log event utilities
  • metrics - OpenTelemetry metrics event utilities
  • trace - OpenTelemetry trace event utilities

Functions

gen_trace_id_string()

Generate a random trace id using the hex string representation

Returns a string

gen_span_id_array()

Generate a random span id using the int array representation

Returns a array of int

gen_span_id_string()

Generate a random span id using the hex string representation

Returns a string

gen_trace_id_array()

Generate a random trace id using the binary representation

Returns a array of int

gen_trace_id_bytes()

Generate a random trace id using the binary representation

Returns a binary

gen_span_id_bytes()

Generate a random span id using the binary representation

Returns a binary