java.lang.Object
io.helidon.tracing.config.TracingConfig.Builder
- All Implemented Interfaces:
Builder<TracingConfig.Builder,
,TracingConfig> Supplier<TracingConfig>
- Enclosing class:
- TracingConfig
public static final class TracingConfig.Builder
extends Object
implements Builder<TracingConfig.Builder,TracingConfig>
Fluent API builder for
TracingConfig
.-
Method Summary
Modifier and TypeMethodDescriptionaddComponent
(ComponentTracingConfig component) Add a traced component configuration.build()
Build the instance from this builder.Update this builder from configuration.enabled
(boolean enabled) Whether overall tracing is enabled.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<TracingConfig.Builder,
TracingConfig> - Returns:
- instance of the built type
-
config
Update this builder from configuration.- Parameters:
config
- Config with tracing configuration- Returns:
- updated builder instance
-
addComponent
Add a traced component configuration.- Parameters:
component
- configuration of this component's tracing- Returns:
- updated builder instance
-
enabled
Whether overall tracing is enabled. If tracing is disabled on this level, all traced components and spans are disabled - even if explicitly configured as enabled.- Parameters:
enabled
- set tofalse
to disable tracing for any component and span- Returns:
- updated builder instance
-