View Source otel_tracestate (opentelemetry_api v1.3.0)
tracestate provides additional vendor-specific trace identification information across different distributed tracing systems. It represents an immutable list consisting of key/value pairs, each pair is referred to as a list-member.
Keys and values are strings of up to 256 printable US-ASCII characters, conforming to the W3C spec https://www.w3.org/TR/trace-context/#tracestate-fieldLink to this section Summary
Link to this section Types
-type members() :: [{unicode:latin1_chardata(), unicode:latin1_chardata()}].
-type t() :: #tracestate{}.
Link to this section Functions
-spec add(unicode:latin1_chardata(), unicode:latin1_chardata(), t()) -> t().
-spec decode_header(string() | undefined) -> t().
-spec encode_header(t()) -> unicode:latin1_binary().
-spec get(unicode:latin1_chardata(), t()) -> unicode:latin1_chardata().
-spec new() -> t().
-spec new([{unicode:latin1_chardata(), unicode:latin1_chardata()}]) -> t().
-spec remove(unicode:latin1_chardata(), t()) -> t().
-spec update(unicode:latin1_chardata(), unicode:latin1_chardata(), t()) -> t().