Class Slf4JBaggageEventListener
java.lang.Object
io.micrometer.tracing.otel.bridge.Slf4JBaggageEventListener
- All Implemented Interfaces:
EventListener
EventListener
to set baggage entries on MDC
.- Since:
- 1.0.0
-
Constructor Summary
ConstructorDescriptionSlf4JBaggageEventListener
(List<String> correlationFields) Creates a new instance ofSlf4JBaggageEventListener
. -
Method Summary
-
Constructor Details
-
Slf4JBaggageEventListener
Creates a new instance ofSlf4JBaggageEventListener
.- Parameters:
correlationFields
- correlation fields
-
-
Method Details
-
onEvent
Description copied from interface:EventListener
Processes an event.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
event
- event to process
-