Class TracingProperties
java.lang.Object
org.axonframework.extension.springboot.TracingProperties
Spring Boot configuration properties for Axon Framework distributed tracing.
Binds to the axon.tracing.* property namespace. The master switch toggles tracing
autoconfiguration as a whole, while nested settings allow tuning individual concerns such as which messaging
components are decorated:
axon:
tracing:
enabled: true
command-bus:
enabled: true
- Since:
- 4.6.0
- Author:
- Mateusz Nowak, Mitchell Herrijgers
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classToggles for the built-inSpanAttributesProviders, bound ataxon.tracing.attribute-providers.*.static classTracing settings for theCommandBus.static classTracing settings for event processors (event handling).static classTracing settings for theEventSink(event publication).static classTracing settings for theEventStorageEngine.static classTracing settings for theQueryBus(queries and subscription-query updates).static classTracing settings forRepository.static classTracing settings forSnapshotStore.static classTracing settings forStateManager. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the toggles for the built-inSpanAttributesProviders.Returns the tracing settings for theCommandBus.Returns the tracing settings for event processors.Returns the tracing settings for theEventSink.Returns the tracing settings for theEventStorageEngine.Returns the tracing settings for theQueryBus.Returns the tracing settings forRepository.Returns the tracing settings forSnapshotStore.Returns the tracing settings forStateManager.booleanReturns whether tracing autoconfiguration is enabled.booleanReturns whether@EventSourcingHandlerinvocations get their own per-method handler span.voidsetEnabled(boolean enabled) Sets whether tracing autoconfiguration is enabled.voidsetEventSourcingHandlersEnabled(boolean eventSourcingHandlersEnabled) Sets whether@EventSourcingHandlerinvocations get their own per-method handler span.
-
Constructor Details
-
TracingProperties
public TracingProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether tracing autoconfiguration is enabled.- Returns:
truewhen tracing is enabled,falseotherwise
-
setEnabled
public void setEnabled(boolean enabled) Sets whether tracing autoconfiguration is enabled.- Parameters:
enabled-trueto enable tracing,falseto disable it
-
isEventSourcingHandlersEnabled
public boolean isEventSourcingHandlersEnabled()Returns whether@EventSourcingHandlerinvocations get their own per-method handler span.- Returns:
truewhen event sourcing handlers are traced,falseotherwise
-
setEventSourcingHandlersEnabled
public void setEventSourcingHandlersEnabled(boolean eventSourcingHandlersEnabled) Sets whether@EventSourcingHandlerinvocations get their own per-method handler span.- Parameters:
eventSourcingHandlersEnabled-trueto trace event sourcing handlers,falseto suppress them
-
getCommandBus
Returns the tracing settings for theCommandBus.- Returns:
- the
CommandBustracing settings, nevernull
-
getEventSink
Returns the tracing settings for theEventSink.- Returns:
- the
EventSinktracing settings, nevernull
-
getEventProcessor
Returns the tracing settings for event processors.- Returns:
- the event-processor tracing settings, never
null
-
getQueryBus
Returns the tracing settings for theQueryBus.- Returns:
- the
QueryBustracing settings, nevernull
-
getRepository
Returns the tracing settings forRepository.- Returns:
- the
Repositorytracing settings, nevernull
-
getStateManager
Returns the tracing settings forStateManager.- Returns:
- the
StateManagertracing settings, nevernull
-
getEventStore
Returns the tracing settings for theEventStorageEngine.- Returns:
- the event-store tracing settings, never
null
-
getSnapshotStore
Returns the tracing settings forSnapshotStore.- Returns:
- the
SnapshotStoretracing settings, nevernull
-
getAttributeProviders
Returns the toggles for the built-inSpanAttributesProviders.- Returns:
- the attribute-provider toggles, never
null
-