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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObservationAwareBaggageThreadLocalAccessor(io.micrometer.observation.ObservationRegistry observationRegistry, Tracer tracer) Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()key()voidreset()Deprecated.voidrestore()voidrestore(BaggageToPropagate value) voidsetValue()voidsetValue(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:
keyin interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
getValue
- Specified by:
getValuein interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
setValue
- Specified by:
setValuein interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
setValue
public void setValue()- Specified by:
setValuein interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
restore
public void restore()- Specified by:
restorein interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
restore
- Specified by:
restorein interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-
reset
Deprecated.- Specified by:
resetin interfaceio.micrometer.context.ThreadLocalAccessor<BaggageToPropagate>
-