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

Link to this function

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

format a span id for logs etc.

Link to this function

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

generate a span id

Link to this function

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

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

Link to this function

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

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