Class DebeziumTracerEventDispatcher

All Implemented Interfaces:
EventDispatcher

@ApplicationScoped public class DebeziumTracerEventDispatcher extends AbstractEventDispatcher
An application-scoped EventDispatcher implementation that is responsible not only for observing ExportedEvent events but also generating an open tracing span that is to be persisted with the event's data, allowing Debezium to capture and emit these as change events.
  • Field Details

    • OPERATION_NAME

      private static final String OPERATION_NAME
      See Also:
    • TRACING_COMPONENT

      private static final String TRACING_COMPONENT
      See Also:
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • tracer

      @Inject io.opentracing.Tracer tracer
  • Constructor Details

    • DebeziumTracerEventDispatcher

      public DebeziumTracerEventDispatcher()
  • Method Details

    • onExportedEvent

      public void onExportedEvent(@Observes ExportedEvent<?,?> event)
      Description copied from interface: EventDispatcher
      An event handler for ExportedEvent events and will be called when the event fires.
      Parameters:
      event - the exported event