Package io.micrometer.tracing
Interface BaggageManager
- All Known Subinterfaces:
Tracer
public interface BaggageManager
Manages
Baggage
entries. Upon retrieval / creation of a baggage entry puts it
in scope. Scope must be closed.- Since:
- 1.0.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBaggage
(String name) Creates a newBaggage
entry for the given name or returns an existing one if it's already present.createBaggage
(String name, String value) Creates a newBaggage
entry for the given name or returns an existing one if it's already present.getBaggage
(TraceContext traceContext, String name) RetrievesBaggage
for the given name.getBaggage
(String name) RetrievesBaggage
for the given name.
-
Field Details
-
NOOP
A noop implementation.
-
-
Method Details
-
getAllBaggage
- Returns:
- mapping of all baggage entries from the given scope
-
getBaggage
RetrievesBaggage
for the given name.- Parameters:
name
- baggage name- Returns:
- baggage or
null
if not present
-
getBaggage
RetrievesBaggage
for the given name.- Parameters:
traceContext
- trace context with baggage attached to itname
- baggage name- Returns:
- baggage or
null
if not present
-
createBaggage
Creates a newBaggage
entry for the given name or returns an existing one if it's already present.- Parameters:
name
- baggage name- Returns:
- new or already created baggage
-
createBaggage
Creates a newBaggage
entry for the given name or returns an existing one if it's already present.- Parameters:
name
- baggage namevalue
- baggage value- Returns:
- new or already created baggage
-