Class TracingHandlerEnhancerDefinition.Builder
java.lang.Object
org.axonframework.messaging.tracing.TracingHandlerEnhancerDefinition.Builder
- Enclosing class:
TracingHandlerEnhancerDefinition
Builder class to instantiate a
TracingHandlerEnhancerDefinition.
The showEventSourcingHandlers is defaulted to false. The SpanFactory is a hard
requirement and should be provided.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Initializes theTracingHandlerEnhancerDefinitionbased on the builder contents.showEventSourcingHandlers(boolean showEventSourcingHandlers) Configures whether event sourcing handlers should be traced.spanFactory(SpanFactory spanFactory) Configures theSpanFactorythe handler enhancer should use for tracing.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
spanFactory
Configures theSpanFactorythe handler enhancer should use for tracing.- Parameters:
spanFactory- TheSpanFactoryto configure.- Returns:
- The builder, for fluent interfacing.
-
showEventSourcingHandlers
public TracingHandlerEnhancerDefinition.Builder showEventSourcingHandlers(boolean showEventSourcingHandlers) Configures whether event sourcing handlers should be traced. Defaults tofalse.- Parameters:
showEventSourcingHandlers- Whether event sourcing handlers should be traced.- Returns:
- The builder, for fluent interfacing.
-
build
Initializes theTracingHandlerEnhancerDefinitionbased on the builder contents.- Returns:
- The
TracingHandlerEnhancerDefinition.
-