Class TracingFeature.Builder
java.lang.Object
io.helidon.nima.webserver.tracing.TracingFeature.Builder
- All Implemented Interfaces:
Builder<TracingFeature.Builder,,TracingFeature> Supplier<TracingFeature>
- Enclosing class:
TracingFeature
public static class TracingFeature.Builder
extends Object
implements Builder<TracingFeature.Builder,TracingFeature>
A fluent API builder for
TracingFeature.-
Method Summary
Modifier and TypeMethodDescriptionaddPathConfig(PathTracingConfig pathTracingConfig) Add a path specific configuration of tracing.build()Build the instance from this builder.Update builder fromConfig.enabled(boolean enabled) Explicitly enable/disable tracing feature.envConfig(TracingConfig tracingConfig) Use the provided configuration as a default for any request.Tracer to use to extract inbound span context.weight(double weight) Override default weight of this feature.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<TracingFeature.Builder,TracingFeature> - Returns:
- instance of the built type
-
addPathConfig
Add a path specific configuration of tracing.- Parameters:
pathTracingConfig- configuration of tracing for a specific path- Returns:
- updated builder instance
-
envConfig
Use the provided configuration as a default for any request.- Parameters:
tracingConfig- default web server tracing configuration- Returns:
- updated builder instance
-
config
Update builder fromConfig.- Parameters:
config- config to read default configuration and path specific configuration from- Returns:
- updated builder instance
-
weight
Override default weight of this feature. Changing weight may cause tracing to be executed at a different time (such as after security, or even after all routes). Please understand feature weights before changing this order.- Parameters:
weight- new weight of tracing feature- Returns:
- updated builder
-
enabled
Explicitly enable/disable tracing feature.- Parameters:
enabled- if set tofalse, this feature will be disabled and tracing filter will never be registered- Returns:
- updated builder
-
tracer
Tracer to use to extract inbound span context.- Parameters:
tracer- tracer to use- Returns:
- updated builder
-