Tapper v0.6.2 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

Specs

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

format a trace id for logs etc.

Specs

generate() :: t()

generate a trace id

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

Specs

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

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