Class DebeziumTracerEventDispatcher
- java.lang.Object
-
- io.debezium.outbox.quarkus.internal.AbstractEventDispatcher
-
- io.debezium.outbox.quarkus.internal.DebeziumTracerEventDispatcher
-
- All Implemented Interfaces:
EventDispatcher
@ApplicationScoped public class DebeziumTracerEventDispatcher extends AbstractEventDispatcher
An application-scopedEventDispatcherimplementation that is responsible not only for observingExportedEventevents 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 Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGGERprivate static StringOPERATION_NAME(package private) io.opentracing.Tracertracerprivate static StringTRACING_COMPONENTstatic StringTRACING_SPAN_CONTEXT-
Fields inherited from class io.debezium.outbox.quarkus.internal.AbstractEventDispatcher
AGGREGATE_ID, AGGREGATE_TYPE, config, entityManager, PAYLOAD, TIMESTAMP, TYPE
-
-
Constructor Summary
Constructors Constructor Description DebeziumTracerEventDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonExportedEvent(ExportedEvent<?,?> event)An event handler forExportedEventevents and will be called when the event fires.-
Methods inherited from class io.debezium.outbox.quarkus.internal.AbstractEventDispatcher
getDataMapFromEvent, persist
-
-
-
-
Field Detail
-
TRACING_SPAN_CONTEXT
public static final String TRACING_SPAN_CONTEXT
- See Also:
- Constant Field Values
-
OPERATION_NAME
private static final String OPERATION_NAME
- See Also:
- Constant Field Values
-
TRACING_COMPONENT
private static final String TRACING_COMPONENT
- See Also:
- Constant Field Values
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
tracer
@Inject io.opentracing.Tracer tracer
-
-
Method Detail
-
onExportedEvent
public void onExportedEvent(@Observes ExportedEvent<?,?> event)Description copied from interface:EventDispatcherAn event handler forExportedEventevents and will be called when the event fires.- Parameters:
event- the exported event
-
-