View Source otel_ctx (opentelemetry_api v1.1.1)

Ctx is responsible for propagating values within a process that are associated with a particular Trace or set of Baggage. OpenTelemetry.Tracer and OpenTelemetry.Baggage handle updating the Context.

Link to this section Summary

Link to this section Types

-type key() :: term().
-type t() :: map() | undefined.
-type token() :: term().
-type value() :: term().

Link to this section Functions

-spec attach(t()) -> token().
-spec clear() -> ok.
-spec clear(t()) -> t().
-spec detach(token()) -> ok.
-spec get_current() -> map().
-spec get_value(term()) -> term().
-spec get_value(term(), term()) -> term().
Link to this function

get_value(Ctx, Key, Default)

View Source
-spec get_value(t(), term(), term()) -> term().
-spec new() -> t().
-spec remove(term()) -> ok.
-spec remove(t(), term()) -> t().
-spec set_value(term(), term()) -> ok.
Link to this function

set_value(Ctx, Key, Value)

View Source
-spec set_value(t(), term(), term()) -> t().
Link to this function

text_map_extractor(Key, FromText)

View Source
Link to this function

text_map_extractor_fun(TextMap, Key, FromText)

View Source
Link to this function

text_map_injector(Key, ToText)

View Source
Link to this function

text_map_injector_fun(TextMap, Key, ToText)

View Source