Class TracingProperties.EventProcessor
java.lang.Object
org.axonframework.extension.springboot.TracingProperties.EventProcessor
- Enclosing class:
TracingProperties
Tracing settings for event processors (event handling).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns how recent an event must be to continue the publisher's trace whendistributedInSameTraceistrue.booleanReturns whether streaming-processor batches get an enclosing batch span.booleanReturns whether the handler span continues the publisher's trace.booleanReturns whether event-handling components are decorated with tracing.voidsetBatchTraceEnabled(boolean batchTraceEnabled) Sets whether streaming-processor batches get an enclosing batch span.voidsetDistributedInSameTrace(boolean distributedInSameTrace) Sets whether the handler span continues the publisher's trace.voidsetDistributedInSameTraceTimeLimit(Duration distributedInSameTraceTimeLimit) Sets how recent an event must be to continue the publisher's trace whendistributedInSameTraceistrue.voidsetEnabled(boolean enabled) Sets whether event-handling components are decorated with tracing.
-
Constructor Details
-
EventProcessor
public EventProcessor()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether event-handling components are decorated with tracing.- Returns:
truewhen event-processor tracing is enabled,falseotherwise
-
setEnabled
public void setEnabled(boolean enabled) Sets whether event-handling components are decorated with tracing.- Parameters:
enabled-trueto enable event-processor tracing,falseto disable it
-
isBatchTraceEnabled
public boolean isBatchTraceEnabled()Returns whether streaming-processor batches get an enclosing batch span.- Returns:
truewhen the batch span is opened,falsewhen it is suppressed
-
setBatchTraceEnabled
public void setBatchTraceEnabled(boolean batchTraceEnabled) Sets whether streaming-processor batches get an enclosing batch span.- Parameters:
batchTraceEnabled-trueto open the batch span,falseto suppress it
-
isDistributedInSameTrace
public boolean isDistributedInSameTrace()Returns whether the handler span continues the publisher's trace.- Returns:
truewhen the handler span continues the publisher's trace,falseotherwise
-
setDistributedInSameTrace
public void setDistributedInSameTrace(boolean distributedInSameTrace) Sets whether the handler span continues the publisher's trace.- Parameters:
distributedInSameTrace-trueto continue the publisher's trace,falseto link back and parent under the batch span instead
-
getDistributedInSameTraceTimeLimit
Returns how recent an event must be to continue the publisher's trace whendistributedInSameTraceistrue.- Returns:
- the time limit for continuing the publisher's trace, never
null
-
setDistributedInSameTraceTimeLimit
Sets how recent an event must be to continue the publisher's trace whendistributedInSameTraceistrue.- Parameters:
distributedInSameTraceTimeLimit- the time limit for continuing the publisher's trace
-