Tapper v0.6.0 Tapper.TraceId View Source

Generate, parse or format a top-level trace id.

The TraceId comprises 128-bits encoded as a lower-case hex string.

Link to this section Summary

Functions

format a trace id for logs etc

generate a trace id

parse a trace id from a hex string, for propagation etc

format a trace id to a hex string, for propagation etc

Link to this section Types

Link to this section Functions

Link to this function

format(trace_id) View Source
format(trace_id :: t()) :: String.t()

format a trace id for logs etc.

Link to this function

generate() View Source
generate() :: t()

generate a trace id

parse a trace id from a hex string, for propagation etc.

Link to this function

to_hex(trace_id) View Source
to_hex(trace_id :: t()) :: String.t()

format a trace id to a hex string, for propagation etc.