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
ConstructorsConstructorDescriptionSlf4JBaggageEventListener(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:EventListenerProcesses an event.- Specified by:
onEventin interfaceEventListener- Parameters:
event- event to process
-