View Source otel_ctx (opentelemetry_api v1.0.3)

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

Specs

key() :: term().

Specs

t() :: map().

Specs

token() :: term().

Specs

value() :: term().

Link to this section Functions

Specs

attach(map()) -> token().

Specs

clear() -> ok.

Specs

clear(t()) -> t().

Specs

detach(token()) -> ok.

Specs

get_current() -> map().

Specs

get_value(term()) -> term().

Specs

get_value(term(), term()) -> term().
Link to this function

get_value(Ctx, Key, Default)

View Source

Specs

get_value(t(), term(), term()) -> term().

Specs

new() -> t().

Specs

remove(term()) -> ok.

Specs

remove(t(), term()) -> t().

Specs

set_value(term(), term()) -> ok.
Link to this function

set_value(Ctx, Key, Value)

View Source

Specs

set_value(t(), term(), term()) -> map().
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