@AutoConfiguration
@AutoConfigureBefore(value={AxonServerAutoConfiguration.class,AxonAutoConfiguration.class})
@EnableConfigurationProperties(value=TracingProperties.class)
public class AxonTracingAutoConfiguration
extends Object
NoOpSpanFactory if no other
SpanFactory bean is configured.
You can define additional SpanAttributesProviders by defining your own implementations as a bean or a
Component. These will be picked up automatically.
OpenTelemetryAutoConfiguration| Constructor and Description |
|---|
AxonTracingAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
SpanAttributesProvider |
aggregateIdentifierSpanAttributesProvider() |
ConfigurerModule |
configurerModuleForTracing(List<SpanAttributesProvider> spanAttributesProviders) |
SpanAttributesProvider |
messageIdSpanAttributesProvider() |
SpanAttributesProvider |
messageNameSpanAttributesProvider() |
SpanAttributesProvider |
messageTypeSpanAttributesProvider() |
SpanAttributesProvider |
metadataSpanAttributesProvider() |
SpanAttributesProvider |
payloadTypeSpanAttributesProvider() |
SpanFactory |
spanFactory() |
HandlerEnhancerDefinition |
tracingHandlerEnhancerDefinition(SpanFactory spanFactory,
TracingProperties properties) |
@Bean @ConditionalOnMissingBean(value=SpanFactory.class) public SpanFactory spanFactory()
@Bean public HandlerEnhancerDefinition tracingHandlerEnhancerDefinition(SpanFactory spanFactory, TracingProperties properties)
@Bean public ConfigurerModule configurerModuleForTracing(List<SpanAttributesProvider> spanAttributesProviders)
@Bean
@ConditionalOnProperty(value="axon.tracing.attribute-providers.aggregate-identifier",
havingValue="true",
matchIfMissing=true)
public SpanAttributesProvider aggregateIdentifierSpanAttributesProvider()
@Bean
@ConditionalOnProperty(value="axon.tracing.attribute-providers.message-id",
havingValue="true",
matchIfMissing=true)
public SpanAttributesProvider messageIdSpanAttributesProvider()
@Bean
@ConditionalOnProperty(value="axon.tracing.attribute-providers.message-name",
havingValue="true",
matchIfMissing=true)
public SpanAttributesProvider messageNameSpanAttributesProvider()
@Bean
@ConditionalOnProperty(value="axon.tracing.attribute-providers.message-type",
havingValue="true",
matchIfMissing=true)
public SpanAttributesProvider messageTypeSpanAttributesProvider()
@Bean
@ConditionalOnProperty(value="axon.tracing.attribute-providers.metadata",
havingValue="true",
matchIfMissing=true)
public SpanAttributesProvider metadataSpanAttributesProvider()
@Bean
@ConditionalOnProperty(value="axon.tracing.attribute-providers.payload-type",
havingValue="true",
matchIfMissing=true)
public SpanAttributesProvider payloadTypeSpanAttributesProvider()
Copyright © 2010–2023. All rights reserved.