Class TracingProperties.EventProcessorProperties

java.lang.Object
org.axonframework.springboot.TracingProperties.EventProcessorProperties
Enclosing class:
TracingProperties

public static class TracingProperties.EventProcessorProperties extends Object
Configuration properties for the behavior of creating tracing spans for the EventProcessor implementations.
Since:
4.9.0
  • 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 to false. When set to true, the EventProcessor will create a new trace each batch event, as long as the batch is handled within the time limit set by distributedInSameTraceTimeLimit.
      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 to false. When set to true, the EventProcessor will create a new trace each batch event, as long as the batch is handled within the time limit set by distributedInSameTraceTimeLimit.
      Parameters:
      distributedInSameTrace - Whether distributed events should be part of the same trace.
    • getDistributedInSameTraceTimeLimit

      public Duration getDistributedInSameTraceTimeLimit()
      The time limit for events handled by a StreamingEventProcessor to be traced in the same trace as the trace that published it. Defaults to 2 minutes. Only used when distributedInSameTrace is true.
      Returns:
      The time limit for events handled by a StreamingEventProcessor to be traced in the same trace as the trace that published it.
    • setDistributedInSameTraceTimeLimit

      public void setDistributedInSameTraceTimeLimit(Duration distributedInSameTraceTimeLimit)
      The time limit for events handled by a StreamingEventProcessor to be traced in the same trace as the trace that published it. Defaults to 2 minutes. Only used when distributedInSameTrace is true.
      Parameters:
      distributedInSameTraceTimeLimit - The time limit for events handled by a StreamingEventProcessor to be traced in the same trace as the trace that published it.