Class ObservationAwareBaggageThreadLocalAccessor
java.lang.Object
io.micrometer.tracing.contextpropagation.ObservationAwareBaggageThreadLocalAccessor
- All Implemented Interfaces:
io.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
public class ObservationAwareBaggageThreadLocalAccessor
extends Object
implements io.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
ThreadLocalAccessor
used to propagate baggage via BaggageToPropagate
.- Since:
- 1.2.2
-
Field Summary
-
Constructor Summary
ConstructorDescriptionObservationAwareBaggageThreadLocalAccessor
(io.micrometer.observation.ObservationRegistry observationRegistry, Tracer tracer) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
key()
void
reset()
Deprecated.void
restore()
void
restore
(BaggageToPropagate value) void
setValue()
void
setValue
(BaggageToPropagate value)
-
Field Details
-
KEY
Key under which Micrometer Tracing Baggage accessor is being registered.- See Also:
-
-
Constructor Details
-
ObservationAwareBaggageThreadLocalAccessor
public ObservationAwareBaggageThreadLocalAccessor(io.micrometer.observation.ObservationRegistry observationRegistry, Tracer tracer) Creates a new instance of this class.- Parameters:
observationRegistry
- observation registrytracer
- tracer- Since:
- 1.2.2
-
-
Method Details
-
key
- Specified by:
key
in interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
getValue
- Specified by:
getValue
in interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
setValue
- Specified by:
setValue
in interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
setValue
public void setValue()- Specified by:
setValue
in interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
restore
public void restore()- Specified by:
restore
in interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
restore
- Specified by:
restore
in interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
reset
Deprecated.- Specified by:
reset
in interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-