Class PathTracingConfig.Builder
java.lang.Object
io.helidon.webserver.observe.tracing.PathTracingConfig.Builder
- All Implemented Interfaces:
Builder<PathTracingConfig.Builder,,PathTracingConfig> Supplier<PathTracingConfig>
- Enclosing interface:
PathTracingConfig
public static final class PathTracingConfig.Builder
extends Object
implements Builder<PathTracingConfig.Builder,PathTracingConfig>
Fluent API builder for
PathTracingConfig.-
Method Summary
Modifier and TypeMethodDescriptionAdd a new HTTP method to restrict this configuration for.build()Build the instance from this builder.Deprecated, for removal: This API element is subject to removal in a future version.Update this builder from providedConfig.HTTP methods to restrict registration of this configuration on web server.Path to register the traced configuration on.tracingConfig(TracingConfig tracedConfig) Configuration of a traced system to use on this path and possibly method(s).
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<PathTracingConfig.Builder,PathTracingConfig> - Returns:
- instance of the built type
-
config
Deprecated, for removal: This API element is subject to removal in a future version.useconfig(io.helidon.config.Config)insteadUpdate this builder from providedConfig.- Parameters:
config- config to update this builder from- Returns:
- updated builder instance
-
config
Update this builder from providedConfig.- Parameters:
config- config to update this builder from- Returns:
- updated builder instance
-
path
Path to register the traced configuration on.- Parameters:
path- path as understood byHttpRouting.Builderof web server- Returns:
- updated builder instance
-
methods
HTTP methods to restrict registration of this configuration on web server.- Parameters:
methods- list of methods to use, empty means all methods- Returns:
- updated builder instance
-
addMethod
Add a new HTTP method to restrict this configuration for.- Parameters:
method- method to add to the list of supported methods- Returns:
- updated builder instance
-
tracingConfig
Configuration of a traced system to use on this path and possibly method(s).- Parameters:
tracedConfig- configuration of components, spans and span logs- Returns:
- updated builder instance
-
config(io.helidon.config.Config)instead