Package org.axonframework.springboot
Class TracingProperties.EventProcessorProperties
java.lang.Object
org.axonframework.springboot.TracingProperties.EventProcessorProperties
- Enclosing class:
TracingProperties
Configuration properties for the behavior of creating tracing spans for the
EventProcessor implementations.- Since:
- 4.9.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe time limit for events handled by aStreamingEventProcessorto be traced in the same trace as the trace that published it.booleanDisables the creation of a batch trace.booleanWhether distributed events should be part of the same trace.voidsetDisableBatchTrace(boolean disableBatchTrace) Disables the creation of a batch trace.voidsetDistributedInSameTrace(boolean distributedInSameTrace) Whether distributed events should be part of the same trace.voidsetDistributedInSameTraceTimeLimit(Duration distributedInSameTraceTimeLimit) The time limit for events handled by aStreamingEventProcessorto be traced in the same trace as the trace that published it.
-
Constructor Details
-
EventProcessorProperties
public EventProcessorProperties()
-
-
Method Details
-
isDisableBatchTrace
public boolean isDisableBatchTrace()Disables the creation of a batch trace. This means each event is handled in its own trace.- Returns:
- whether batch tracing is disabled.
-
setDisableBatchTrace
public void setDisableBatchTrace(boolean disableBatchTrace) Disables the creation of a batch trace. This means each event is handled in its own trace.- Parameters:
disableBatchTrace- Whether batch tracing is disabled.
-
isDistributedInSameTrace
public boolean isDistributedInSameTrace()Whether distributed events should be part of the same trace. Defaults tofalse. When set totrue, theEventProcessorwill create a new trace each batch event, as long as the batch is handled within the time limit set bydistributedInSameTraceTimeLimit.- Returns:
- Whether distributed events should be part of the same trace.
-
setDistributedInSameTrace
public void setDistributedInSameTrace(boolean distributedInSameTrace) Whether distributed events should be part of the same trace. Defaults tofalse. When set totrue, theEventProcessorwill create a new trace each batch event, as long as the batch is handled within the time limit set bydistributedInSameTraceTimeLimit.- Parameters:
distributedInSameTrace- Whether distributed events should be part of the same trace.
-
getDistributedInSameTraceTimeLimit
The time limit for events handled by aStreamingEventProcessorto be traced in the same trace as the trace that published it. Defaults to 2 minutes. Only used whendistributedInSameTraceistrue.- Returns:
- The time limit for events handled by a
StreamingEventProcessorto be traced in the same trace as the trace that published it.
-
setDistributedInSameTraceTimeLimit
The time limit for events handled by aStreamingEventProcessorto be traced in the same trace as the trace that published it. Defaults to 2 minutes. Only used whendistributedInSameTraceistrue.- Parameters:
distributedInSameTraceTimeLimit- The time limit for events handled by aStreamingEventProcessorto be traced in the same trace as the trace that published it.
-