Interface EventProcessorSpanFactory
- All Known Implementing Classes:
DefaultEventProcessorSpanFactory
public interface EventProcessorSpanFactory
Span factory that creates spans for the
EventProcessor implementations. You can customize the spans of the
event processing by creating your own implementation.- Since:
- 4.9.0
- Author:
- Mitchell Herrijgers
-
Method Summary
Modifier and TypeMethodDescriptioncreateBatchSpan(boolean streaming, List<? extends EventMessage> eventMessages) Creates a span for the batch of events that are handled by the event processor.createProcessEventSpan(boolean streaming, EventMessage eventMessage) Creates a span for the handling of an event.
-
Method Details
-
createBatchSpan
Creates a span for the batch of events that are handled by the event processor.- Parameters:
streaming- Whether the event is handled by aStreamingEventProcessor.eventMessages- The event messages that are in the batch.- Returns:
- The created span.
-
createProcessEventSpan
Creates a span for the handling of an event. This entails the entire interceptor chain and the handler.- Parameters:
streaming- Whether the event is handled by aStreamingEventProcessor.eventMessage- The event message that is handled.- Returns:
- The created span.
-