Module otel_ctx

Ctx is responsible for propagating values within a process that are associated with a particular Trace or set of Baggage.

Description

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.

Data Types

key()

key() = term()

t()

t() = map()

token()

token() = term()

value()

value() = term()

Function Index

attach/1
clear/0
clear/1
detach/1
get_current/0
get_value/1
get_value/2
get_value/3
new/0
remove/1
remove/2
set_value/2
set_value/3
text_map_extractor/2
text_map_extractor_fun/3
text_map_injector/2
text_map_injector_fun/3

Function Details

attach/1

attach(Ctx::map()) -> token()

clear/0

clear() -> ok

clear/1

clear(X1::t()) -> t()

detach/1

detach(Token::token()) -> ok

get_current/0

get_current() -> map()

get_value/1

get_value(Key::term()) -> term()

get_value/2

get_value(Key::term(), Default::term()) -> term()

get_value/3

get_value(Ctx::t(), Key::term(), Default::term()) -> term()

new/0

new() -> t()

remove/1

remove(Key::term()) -> ok

remove/2

remove(Ctx::t(), Key::term()) -> t()

set_value/2

set_value(Key::term(), Value::term()) -> ok

set_value/3

set_value(Ctx::t(), Key::term(), Value::term()) -> map()

text_map_extractor/2

text_map_extractor(Key, FromText) -> any()

text_map_extractor_fun/3

text_map_extractor_fun(TextMap, Key, FromText) -> any()

text_map_injector/2

text_map_injector(Key, ToText) -> any()

text_map_injector_fun/3

text_map_injector_fun(TextMap, Key, ToText) -> any()


Generated by EDoc