Class TracingConfigurationDefaults
java.lang.Object
org.axonframework.messaging.tracing.configuration.TracingConfigurationDefaults
- All Implemented Interfaces:
ConfigurationEnhancer
@Internal
@RegistrationScope("Register the registry default once at the root; do not re-invoke in child module registries. The component is resolved through the parent chain, and re-registering per nesting level would give each module its own registry, splitting the provider contributions.")
public final class TracingConfigurationDefaults
extends Object
implements ConfigurationEnhancer
ConfigurationEnhancer registering the tracing defaults of the axon-messaging module. Discovered
automatically via ServiceLoader.
Registers the SpanAttributesProviderRegistry component (a DefaultSpanAttributesProviderRegistry)
when none is present. Runs at TracingConfigurationOrder.TRACING_DEFAULTS_ENHANCER_ORDER so user-supplied
registrations take precedence.
- Since:
- 5.3.0
- Author:
- Mateusz Nowak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(ComponentRegistry registry) intorder()Returns the relative order this enhancer should be invoked in, compared to other instances.
-
Constructor Details
-
TracingConfigurationDefaults
public TracingConfigurationDefaults()
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
registry- The registry instance to enhance.
-
order
public int order()Description copied from interface:ConfigurationEnhancerReturns the relative order this enhancer should be invoked in, compared to other instances.Use lower (negative) values for enhancers providing sensible defaults, and higher values for enhancers that should be able to override values potentially previously set. Defaults to
0when not set.- Specified by:
orderin interfaceConfigurationEnhancer- Returns:
- The order in which this enhancer should be invoked.
-