otel_tracestate (OpenTelemetry API v1.4.0)

View Source

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-field

Summary

Types

members/0

-type members() :: [{unicode:latin1_chardata(), unicode:latin1_chardata()}].

t/0

-type t() :: #tracestate{members :: members()}.

Functions

add(Key, Value, Tracestate)

decode_header(Value)

-spec decode_header(string() | undefined) -> t().

encode_header(Tracestate)

-spec encode_header(t()) -> unicode:latin1_binary().

get(Key, Tracestate)

new()

-spec new() -> t().

new(List)

remove(Key, Tracestate)

-spec remove(unicode:latin1_chardata(), t()) -> t().

update(Key, Value, Tracestate)

-spec update(unicode:latin1_chardata(), unicode:latin1_chardata(), t()) -> t().