Tapper v0.3.1 Tapper.SpanId View Source

Generate, format or parse a span id.

A span id is a 64-bit integer.

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(s) 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.