- java.lang.Object
-
- io.helidon.tracing.config.SpanTracingConfig.Builder
-
- All Implemented Interfaces:
Builder<SpanTracingConfig>
,Supplier<SpanTracingConfig>
- Enclosing class:
- SpanTracingConfig
public static final class SpanTracingConfig.Builder extends Object implements Builder<SpanTracingConfig>
A fluent API builder forSpanTracingConfig
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpanTracingConfig.Builder
addSpanLog(SpanLogTracingConfig spanLogTracingConfig)
Add configuration of a traced span log.SpanTracingConfig
build()
Build the instance from this builder.SpanTracingConfig.Builder
config(Config config)
Update this builder fromConfig
.SpanTracingConfig.Builder
enabled(boolean enabled)
Configure whether this traced span is enabled or disabled.SpanTracingConfig.Builder
newName(String newName)
Configure a new name of this span.
-
-
-
Method Detail
-
build
public SpanTracingConfig build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<SpanTracingConfig>
- Returns:
- instance of the built type
-
enabled
public SpanTracingConfig.Builder enabled(boolean enabled)
Configure whether this traced span is enabled or disabled.- Parameters:
enabled
- if disabled, this span and all logs will be disabled- Returns:
- updated builder instance
-
newName
public SpanTracingConfig.Builder newName(String newName)
Configure a new name of this span.- Parameters:
newName
- new name to use when reporting this span- Returns:
- updated builder instance
-
addSpanLog
public SpanTracingConfig.Builder addSpanLog(SpanLogTracingConfig spanLogTracingConfig)
Add configuration of a traced span log.- Parameters:
spanLogTracingConfig
- configuration of the traced span log- Returns:
- updated builder instance
-
config
public SpanTracingConfig.Builder config(Config config)
Update this builder fromConfig
.- Parameters:
config
- configuration of this span- Returns:
- updated builder instance
-
-