Class DebeziumTracerEventDispatcher
java.lang.Object
io.debezium.outbox.quarkus.internal.AbstractEventWriter<Void>
io.debezium.outbox.quarkus.internal.AbstractEventDispatcher
io.debezium.outbox.quarkus.internal.DebeziumTracerEventDispatcher
- All Implemented Interfaces:
EventDispatcher
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final String(package private) io.opentracing.Tracerprivate static final StringFields inherited from class io.debezium.outbox.quarkus.internal.AbstractEventDispatcher
config, entityManagerFields inherited from class io.debezium.outbox.quarkus.internal.AbstractEventWriter
AGGREGATE_ID, AGGREGATE_TYPE, PAYLOAD, TIMESTAMP, TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonExportedEvent(ExportedEvent<?, ?> event) An event handler forExportedEventevents and will be called when the event fires.Methods inherited from class io.debezium.outbox.quarkus.internal.AbstractEventDispatcher
persistMethods inherited from class io.debezium.outbox.quarkus.internal.AbstractEventWriter
createDataMap, getDataMapFromEvent
-
Field Details
-
OPERATION_NAME
- See Also:
-
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
Description copied from interface:EventDispatcherAn event handler forExportedEventevents and will be called when the event fires.- Parameters:
event- the exported event
-