Module io.helidon.tracing.config
Package io.helidon.tracing.config
Class ComponentTracingConfig.Builder
java.lang.Object
io.helidon.tracing.config.ComponentTracingConfig.Builder
- All Implemented Interfaces:
Builder<ComponentTracingConfig.Builder,,ComponentTracingConfig> Supplier<ComponentTracingConfig>
- Enclosing class:
ComponentTracingConfig
public static final class ComponentTracingConfig.Builder
extends Object
implements Builder<ComponentTracingConfig.Builder,ComponentTracingConfig>
Fluent API builder for
ComponentTracingConfig.-
Method Summary
Modifier and TypeMethodDescriptionaddSpan(SpanTracingConfig span) Add a new traced span configuration.build()Build the instance from this builder.Update this builder fromConfig.enabled(boolean enabled) Configure whether this component is enabled or disabled.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<ComponentTracingConfig.Builder,ComponentTracingConfig> - Returns:
- instance of the built type
-
config
Update this builder fromConfig.- Parameters:
config- configuration of a traced component- Returns:
- updated builder instance
-
addSpan
Add a new traced span configuration.- Parameters:
span- configuration of a traced span- Returns:
- updated builder instance
-
enabled
Configure whether this component is enabled or disabled.- Parameters:
enabled- if disabled, all spans and logs will be disabled- Returns:
- updated builder instance
-