public interface BaggageManager
BaggageInScope entries. Upon retrieval / creation of a baggage entry
puts it in scope. Scope must be closed.| Modifier and Type | Method and Description |
|---|---|
BaggageInScope |
createBaggage(String name)
Creates a new
BaggageInScope entry for the given name or returns an
existing one if it's already present. |
BaggageInScope |
createBaggage(String name,
String value)
Creates a new
BaggageInScope entry for the given name or returns an
existing one if it's already present. |
Map<String,String> |
getAllBaggage() |
BaggageInScope |
getBaggage(String name)
Retrieves
BaggageInScope for the given name. |
BaggageInScope |
getBaggage(TraceContext traceContext,
String name)
Retrieves
BaggageInScope for the given name. |
Map<String,String> getAllBaggage()
@Nullable BaggageInScope getBaggage(String name)
BaggageInScope for the given name.name - baggage namenull if not present@Nullable BaggageInScope getBaggage(TraceContext traceContext, String name)
BaggageInScope for the given name.traceContext - trace context with baggage attached to itname - baggage namenull if not presentBaggageInScope createBaggage(String name)
BaggageInScope entry for the given name or returns an
existing one if it's already present.name - baggage nameBaggageInScope createBaggage(String name, String value)
BaggageInScope entry for the given name or returns an
existing one if it's already present.name - baggage namevalue - baggage valueCopyright © 2021 Pivotal Software, Inc.. All rights reserved.