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 Type
    Method
    Description
    createBatchSpan(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

      Span createBatchSpan(boolean streaming, List<? extends EventMessage> eventMessages)
      Creates a span for the batch of events that are handled by the event processor.
      Parameters:
      streaming - Whether the event is handled by a StreamingEventProcessor.
      eventMessages - The event messages that are in the batch.
      Returns:
      The created span.
    • createProcessEventSpan

      Span createProcessEventSpan(boolean streaming, EventMessage eventMessage)
      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 a StreamingEventProcessor.
      eventMessage - The event message that is handled.
      Returns:
      The created span.