Tapper v0.6.2 Tapper.SpanId View Source

Generate, format or parse a span id.

The SpanId comprises 64-bits encoded as a lower-case hex string.

Link to this section Summary

Functions

format a span id for logs etc.

generate a span id

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

format a span id as a hex string, for propagation etc.

Link to this section Types

Link to this section Functions

Specs

format(span_id :: t()) :: String.t()

format a span id for logs etc.

Specs

generate() :: t()

generate a span id

Specs

parse(String.t()) :: {:ok, t()} | :error

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

Specs

to_hex(span_id :: t()) :: String.t()

format a span id as a hex string, for propagation etc.