View Source otel_baggage (opentelemetry_api v1.2.2)
Link to this section Summary
Link to this section Types
-type input_key() :: key() | unicode:charlist().
-type input_value() :: value() | unicode:charlist() | atom().
-type key() :: unicode:unicode_binary().
-type metadata() :: [unicode:unicode_binary() | {unicode:unicode_binary(), unicode:unicode_binary()}].
-type value() :: unicode:unicode_binary().
Link to this section Functions
-spec clear() -> ok.
-spec clear(otel_ctx:t()) -> otel_ctx:t().
-spec get_all() -> t().
-spec get_all(otel_ctx:t()) -> t().
-spec set(otel_ctx:t() | input_key(), #{input_key() => input_value()} | [{input_key(), input_value()}] | input_value()) -> otel_ctx:t() | ok.
-spec set(otel_ctx:t() | input_key(), input_key() | input_value(), input_value() | metadata()) -> otel_ctx:t() | ok.
-spec set(otel_ctx:t(), input_key(), input_value(), metadata()) -> otel_ctx:t().
-spec set_to(otel_ctx:t(), #{input_key() => input_value()} | [{input_key(), input_value()}]) -> otel_ctx:t().
-spec set_to(otel_ctx:t(), input_key(), input_value()) -> otel_ctx:t().
-spec set_to(otel_ctx:t(), input_key(), input_value(), metadata()) -> otel_ctx:t().