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 from configuration.enabled(boolean enabled) Configure whether this component is enabled or disabled.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ComponentTracingConfigget()default ComponentTracingConfig.Builderidentity()Instance of this builder as the correct type.default ComponentTracingConfig.Builderupdate(Consumer<ComponentTracingConfig.Builder> consumer) Update the builder in a fluent API way.
-
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 from configuration.- 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
-