otel_tracestate (OpenTelemetry API v1.4.0)
View Sourcetracestate 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-field
Summary
Types
-type members() :: [{unicode:latin1_chardata(), unicode:latin1_chardata()}].
-type t() :: #tracestate{members :: members()}.
Functions
-spec add(unicode:latin1_chardata(), unicode:latin1_chardata(), t()) -> 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().