Class DefaultEventProcessorSpanFactory

java.lang.Object
org.axonframework.messaging.eventhandling.tracing.DefaultEventProcessorSpanFactory
All Implemented Interfaces:
EventProcessorSpanFactory

public class DefaultEventProcessorSpanFactory extends Object implements EventProcessorSpanFactory
Default implementation of the EventProcessorSpanFactory.

Creates a root trace for each batch of events and a linked handler span for each event in the batch by default. This behavior can be changed by setting DefaultEventProcessorSpanFactory.Builder.disableBatchTrace(boolean) to true.

If you prefer to have asynchronously handled events in the same trace as the trace that published it, you can set DefaultEventProcessorSpanFactory.Builder.distributedInSameTrace(boolean) to true. If true, this duration defaults to 2 minutes, which you can adjust using DefaultEventProcessorSpanFactory.Builder.distributedInSameTraceTimeLimit(Duration).

Since:
4.9.0
Author:
Mitchell Herrijgers