Interface BaggageView
- All Known Subinterfaces:
Baggage, BaggageInScope
public interface BaggageView
Inspired by OpenZipkin Brave's
BaggageField. Represents a single, immutable
baggage entry.- Since:
- 1.0.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringget()Retrieves baggage value.@Nullable Stringget(TraceContext traceContext) Retrieves baggage value from the givenTraceContext.name()Retrieves baggage name.
-
Field Details
-
NOOP
A noop implementation.
-
-
Method Details
-
name
-
get
@Nullable String get()Retrieves baggage value.- Returns:
- value of the baggage entry or
nullif not set.
-
get
Retrieves baggage value from the givenTraceContext.- Parameters:
traceContext- context containing baggage- Returns:
- value of the baggage entry or
nullif not set.
-