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