Package io.micrometer.tracing
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
-
Method Summary
Modifier and TypeMethodDescriptionget()
Retrieves baggage value.get
(TraceContext traceContext) Retrieves baggage value from the givenTraceContext
.name()
Retrieves baggage name.
-
Field Details
-
NOOP
A noop implementation.
-
-
Method Details
-
name
String name()Retrieves baggage name.- Returns:
- name of the baggage entry
-
get
Retrieves baggage value.- Returns:
- value of the baggage entry or
null
if not set.
-
get
Retrieves baggage value from the givenTraceContext
.- Parameters:
traceContext
- context containing baggage- Returns:
- value of the baggage entry or
null
if not set.
-