Conversion and manipulation functions for
io.opentelemetry.api.baggage.Baggage
objects.
Conversion and manipulation functions for `io.opentelemetry.api.baggage.Baggage` objects.
(->baggage m)
Converts a map to a Baggage
instance. Each key in the map is either a
string or a keyword. Each value in the map is either value
or a vector
[value metadata]
, where value
and metadata
are strings.
Converts a map to a `Baggage` instance. Each key in the map is either a string or a keyword. Each value in the map is either `value` or a vector `[value metadata]`, where `value` and `metadata` are strings.
(->map baggage)
Converts a Baggage
instance to a map. Each key of the returned map is a
string. Each value in the map is either value
or a vector
[value metadata]
, where value
and metadata
are strings.
Converts a `Baggage` instance to a map. Each key of the returned map is a string. Each value in the map is either `value` or a vector `[value metadata]`, where `value` and `metadata` are strings.
(assoc-baggage context baggage)
Associates baggage with a context and returns the new context.
Associates baggage with a context and returns the new context.
(get-baggage)
(get-baggage context)
Gets the baggage from a given context, or the current context if none is given. If no baggage is found in the context, empty baggage is returned.
Gets the baggage from a given context, or the current context if none is given. If no baggage is found in the context, empty baggage is returned.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close