java.lang.Object
io.helidon.tracing.config.SpanTracingConfig.Builder
- All Implemented Interfaces:
Builder<SpanTracingConfig.Builder,
,SpanTracingConfig> Supplier<SpanTracingConfig>
- Enclosing class:
- SpanTracingConfig
public static final class SpanTracingConfig.Builder
extends Object
implements Builder<SpanTracingConfig.Builder,SpanTracingConfig>
A fluent API builder for
SpanTracingConfig
.-
Method Summary
Modifier and TypeMethodDescriptionaddSpanLog
(SpanLogTracingConfig spanLogTracingConfig) Add configuration of a traced span log.build()
Build the instance from this builder.Update this builder fromConfig
.enabled
(boolean enabled) Configure whether this traced span is enabled or disabled.Configure a new name of this span.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<SpanTracingConfig.Builder,
SpanTracingConfig> - Returns:
- instance of the built type
-
enabled
Configure whether this traced span is enabled or disabled.- Parameters:
enabled
- if disabled, this span and all logs will be disabled- Returns:
- updated builder instance
-
newName
Configure a new name of this span.- Parameters:
newName
- new name to use when reporting this span- Returns:
- updated builder instance
-
addSpanLog
Add configuration of a traced span log.- Parameters:
spanLogTracingConfig
- configuration of the traced span log- Returns:
- updated builder instance
-
config
Update this builder fromConfig
.- Parameters:
config
- configuration of this span- Returns:
- updated builder instance
-