Class Slf4JBaggageEventListener

java.lang.Object
io.micrometer.tracing.otel.bridge.Slf4JBaggageEventListener
All Implemented Interfaces:
EventListener

public class Slf4JBaggageEventListener extends Object implements EventListener
EventListener to set baggage entries on MDC.
Since:
1.0.0
  • Constructor Details

    • Slf4JBaggageEventListener

      public Slf4JBaggageEventListener(List<String> correlationFields)
      Creates a new instance of Slf4JBaggageEventListener.
      Parameters:
      correlationFields - correlation fields
  • Method Details

    • onEvent

      public void onEvent(Object event)
      Description copied from interface: EventListener
      Processes an event.
      Specified by:
      onEvent in interface EventListener
      Parameters:
      event - event to process