Class TracingProperties.EventProcessor

java.lang.Object
org.axonframework.extension.springboot.TracingProperties.EventProcessor
Enclosing class:
TracingProperties

public static class TracingProperties.EventProcessor extends Object
Tracing settings for event processors (event handling).
  • Constructor Details

    • EventProcessor

      public EventProcessor()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether event-handling components are decorated with tracing.
      Returns:
      true when event-processor tracing is enabled, false otherwise
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets whether event-handling components are decorated with tracing.
      Parameters:
      enabled - true to enable event-processor tracing, false to disable it
    • isBatchTraceEnabled

      public boolean isBatchTraceEnabled()
      Returns whether streaming-processor batches get an enclosing batch span.
      Returns:
      true when the batch span is opened, false when it is suppressed
    • setBatchTraceEnabled

      public void setBatchTraceEnabled(boolean batchTraceEnabled)
      Sets whether streaming-processor batches get an enclosing batch span.
      Parameters:
      batchTraceEnabled - true to open the batch span, false to suppress it
    • isDistributedInSameTrace

      public boolean isDistributedInSameTrace()
      Returns whether the handler span continues the publisher's trace.
      Returns:
      true when the handler span continues the publisher's trace, false otherwise
    • setDistributedInSameTrace

      public void setDistributedInSameTrace(boolean distributedInSameTrace)
      Sets whether the handler span continues the publisher's trace.
      Parameters:
      distributedInSameTrace - true to continue the publisher's trace, false to link back and parent under the batch span instead
    • getDistributedInSameTraceTimeLimit

      public Duration getDistributedInSameTraceTimeLimit()
      Returns how recent an event must be to continue the publisher's trace when distributedInSameTrace is true.
      Returns:
      the time limit for continuing the publisher's trace, never null
    • setDistributedInSameTraceTimeLimit

      public void setDistributedInSameTraceTimeLimit(Duration distributedInSameTraceTimeLimit)
      Sets how recent an event must be to continue the publisher's trace when distributedInSameTrace is true.
      Parameters:
      distributedInSameTraceTimeLimit - the time limit for continuing the publisher's trace