View Source otel_ctx (opentelemetry_api v1.2.2)

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.
-opaque token()
-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()) -> eqwalizer:dynamic().
-spec get_value(term(), term()) -> eqwalizer:dynamic().
Link to this function

get_value(Ctx, Key, Default)

View Source
-spec get_value(t(), term(), term()) -> eqwalizer:dynamic().
-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