- java.lang.Object
-
- io.helidon.tracing.config.TracingConfig.Builder
-
- All Implemented Interfaces:
Builder<TracingConfig>
,Supplier<TracingConfig>
- Enclosing class:
- TracingConfig
public static final class TracingConfig.Builder extends Object implements Builder<TracingConfig>
Fluent API builder forTracingConfig
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TracingConfig.Builder
addComponent(ComponentTracingConfig component)
Add a traced component configuration.TracingConfig
build()
Build the instance from this builder.TracingConfig.Builder
config(Config config)
Update this builder from configuration.TracingConfig.Builder
enabled(boolean enabled)
Whether overall tracing is enabled.
-
-
-
Method Detail
-
build
public TracingConfig build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<TracingConfig>
- Returns:
- instance of the built type
-
config
public TracingConfig.Builder config(Config config)
Update this builder from configuration.- Parameters:
config
- Config with tracing configuration- Returns:
- updated builder instance
-
addComponent
public TracingConfig.Builder addComponent(ComponentTracingConfig component)
Add a traced component configuration.- Parameters:
component
- configuration of this component's tracing- Returns:
- updated builder instance
-
enabled
public TracingConfig.Builder enabled(boolean 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
-
-