Class TracingProperties

java.lang.Object
org.axonframework.extension.springboot.TracingProperties

@ConfigurationProperties(prefix="axon.tracing") public class TracingProperties extends Object
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
  • Constructor Details

    • TracingProperties

      public TracingProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether tracing autoconfiguration is enabled.
      Returns:
      true when tracing is enabled, false otherwise
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets whether tracing autoconfiguration is enabled.
      Parameters:
      enabled - true to enable tracing, false to disable it
    • isEventSourcingHandlersEnabled

      public boolean isEventSourcingHandlersEnabled()
      Returns whether @EventSourcingHandler invocations get their own per-method handler span.
      Returns:
      true when event sourcing handlers are traced, false otherwise
    • setEventSourcingHandlersEnabled

      public void setEventSourcingHandlersEnabled(boolean eventSourcingHandlersEnabled)
      Sets whether @EventSourcingHandler invocations get their own per-method handler span.
      Parameters:
      eventSourcingHandlersEnabled - true to trace event sourcing handlers, false to suppress them
    • getCommandBus

      public TracingProperties.CommandBus getCommandBus()
      Returns the tracing settings for the CommandBus.
      Returns:
      the CommandBus tracing settings, never null
    • getEventSink

      public TracingProperties.EventSink getEventSink()
      Returns the tracing settings for the EventSink.
      Returns:
      the EventSink tracing settings, never null
    • getEventProcessor

      public TracingProperties.EventProcessor getEventProcessor()
      Returns the tracing settings for event processors.
      Returns:
      the event-processor tracing settings, never null
    • getQueryBus

      public TracingProperties.QueryBus getQueryBus()
      Returns the tracing settings for the QueryBus.
      Returns:
      the QueryBus tracing settings, never null
    • getRepository

      public TracingProperties.Repository getRepository()
      Returns the tracing settings for Repository.
      Returns:
      the Repository tracing settings, never null
    • getStateManager

      public TracingProperties.StateManager getStateManager()
      Returns the tracing settings for StateManager.
      Returns:
      the StateManager tracing settings, never null
    • getEventStore

      public TracingProperties.EventStore getEventStore()
      Returns the tracing settings for the EventStorageEngine.
      Returns:
      the event-store tracing settings, never null
    • getSnapshotStore

      public TracingProperties.SnapshotStore getSnapshotStore()
      Returns the tracing settings for SnapshotStore.
      Returns:
      the SnapshotStore tracing settings, never null
    • getAttributeProviders

      public TracingProperties.AttributeProviders getAttributeProviders()
      Returns the toggles for the built-in SpanAttributesProviders.
      Returns:
      the attribute-provider toggles, never null