View Source otel_baggage (opentelemetry_api v1.1.1)

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

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(#{key() => value()} | [{key(), value()}]) -> ok.
-spec set(otel_ctx:t() | input_key(),
    #{input_key() => input_value()} | [{input_key(), input_value()}] | input_value()) ->
       otel_ctx:t() | ok.
Link to this function

set(Key, Value, Metadata)

View Source
-spec set(otel_ctx:t() | input_key(), input_key() | input_value(), input_value() | metadata()) ->
       otel_ctx:t() | ok.
Link to this function

set(Ctx, Key, Value, Metadata)

View Source
-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().
Link to this function

set_to(Ctx, Key, Value, Metadata)

View Source
-spec set_to(otel_ctx:t(), input_key(), input_value(), metadata()) -> otel_ctx:t().