otel_baggage (opentelemetry_api v1.0.0-rc.2)

Baggage is used to annotate telemetry, adding context and information to metrics, traces, and logs. It is represented by a set of name/value pairs describing user-defined properties.

Link to this section Summary

Link to this section Types

Specs

key() :: unicode:unicode_binary().

Specs

metadata() :: [unicode:unicode_binary() | {unicode:unicode_binary(), unicode:unicode_binary()}].

Specs

t() :: #{key() => {value(), metadata()}}.

Specs

value() :: unicode:unicode_binary().

Link to this section Functions

Specs

clear() -> ok.

Specs

clear(otel_ctx:t()) -> otel_ctx:t().
Link to this function

convert_to_binary(Binary, InEncoding, OutEncoding)

Link to this function

decode_key(Key)

Link to this function

decode_value(ValueAndMetadata)

Link to this function

encode_key(Key)

Link to this function

encode_metadata(Metadata)

Link to this function

encode_value(_)

Link to this function

form_urlencode(Cs, _)

Specs

get_all() -> t().

Specs

get_all(otel_ctx:t()) -> t().
Link to this function

get_text_map_propagators()

Specs

get_text_map_propagators() ->
                            {otel_propagator:text_map_extractor(),
                             otel_propagator:text_map_injector()}.
Link to this function

html5_byte_encode(B)

Link to this function

html5_byte_encode(H, Acc)

Link to this function

is_hex_digit(C)

Specs

is_hex_digit(char()) -> boolean().
Link to this function

lookup(Header, Rest)

Link to this function

metadata_decode(Metadata)

Link to this function

percent_decode(URI)

Specs

percent_decode(URI) -> Result
                  when
                      URI :: uri_string:uri_string(),
                      Result ::
                          uri_string:uri_string() | {error, {invalid, {atom(), {term(), term()}}}}.

Specs

raw_decode(list() | binary()) -> list() | binary() | uri_string:error().
Link to this function

raw_decode(L, Acc)

Specs

set(#{key() => value()} | [{key(), value()}]) -> ok.
Link to this function

set(Key, Value)

Specs

set(otel_ctx:t() | key() | unicode:charlist(), #{key() => value()} | [{key(), value()}] | value()) ->
       otel_ctx:t().
Link to this function

set(Key, Value, Metadata)

Specs

set(otel_ctx:t() | key(), key() | value(), value() | list()) -> ok | otel_ctx:t().
Link to this function

set(Ctx, Key, Value, Metadata)

Specs

set(otel_ctx:t(), key(), value(), metadata()) -> otel_ctx:t().
Link to this function

string_decode(S)

Link to this function

to_binary(String)

Link to this function

update_metadata(Value)

Link to this function

update_metadata(Value, Metadata)

Link to this function

verify_baggage(KeyValues)

Link to this function

verify_metadata(M)