Class TracingObserverConfig.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends TracingObserverConfig>
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.webserver.observe.tracing.TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
TracingObserverConfig.Builder
- Enclosing interface:
TracingObserverConfig
public abstract static class TracingObserverConfig.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends TracingObserverConfig>
extends ObserverConfigBase.BuilderBase<BUILDER,PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
TracingObserverConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.webserver.observe.ObserverConfigBase.BuilderBase
ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPathConfig(PathTracingConfig pathConfig) Path specific configuration of tracing.addPathConfig(Consumer<PathTracingConfig.Builder> consumer) Path specific configuration of tracing.addPathConfigs(List<? extends PathTracingConfig> pathConfigs) Path specific configuration of tracing.Sockets to trace.addSockets(Set<String> sockets) Sockets to trace.Clear all pathConfigs.Clear all sockets.Deprecated.Update builder from configuration (node of this type).Use the provided configuration as a default for any request.envConfig(TracingConfig envConfig) Use the provided configuration as a default for any request.envConfig(Consumer<TracingConfig.Builder> consumer) Use the provided configuration as a default for any request.envConfig(Supplier<? extends TracingConfig> supplier) Use the provided configuration as a default for any request.from(TracingObserverConfig prototype) Update this builder from an existing prototype instance.from(TracingObserverConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Path specific configuration of tracing.pathConfigs(List<? extends PathTracingConfig> pathConfigs) Path specific configuration of tracing.protected voidHandles providers and decorators.sockets()Sockets to trace.Sockets to trace.toString()tracer()Tracer to use to extract inbound span context.Tracer to use to extract inbound span context.protected voidValidates required properties.booleanWhether waiting due to concurrency limit constraints should be traced.waitTracingEnabled(boolean waitTracingEnabled) Whether waiting due to concurrency limit constraints should be traced.doubleweight()Weight of the feature registered with WebServer.weight(double weight) Weight of the feature registered with WebServer.Methods inherited from class io.helidon.webserver.observe.ObserverConfigBase.BuilderBase
config, enabled, enabled, from, from, name, nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TracingObserverConfig> - Overrides:
configin classObserverConfigBase.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TracingObserverConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TracingObserverConfig> - Overrides:
configin classObserverConfigBase.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TracingObserverConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
envConfig
Use the provided configuration as a default for any request.- Parameters:
envConfig- default web server tracing configuration- Returns:
- updated builder instance
- See Also:
-
envConfig
Use the provided configuration as a default for any request.- Parameters:
consumer- consumer of builder of default web server tracing configuration- Returns:
- updated builder instance
- See Also:
-
envConfig
Use the provided configuration as a default for any request.- Parameters:
supplier- supplier of default web server tracing configuration- Returns:
- updated builder instance
- See Also:
-
clearPathConfigs
Clear all pathConfigs.- Returns:
- updated builder instance
- See Also:
-
pathConfigs
Path specific configuration of tracing.- Parameters:
pathConfigs- configuration of tracing for specific paths- Returns:
- updated builder instance
- See Also:
-
addPathConfigs
Path specific configuration of tracing.- Parameters:
pathConfigs- configuration of tracing for specific paths- Returns:
- updated builder instance
- See Also:
-
addPathConfig
Path specific configuration of tracing.- Parameters:
pathConfig- add single configuration of tracing for specific paths- Returns:
- updated builder instance
- See Also:
-
addPathConfig
Path specific configuration of tracing.- Parameters:
consumer- consumer of builder for configuration of tracing for specific paths- Returns:
- updated builder instance
- See Also:
-
tracer
Tracer to use to extract inbound span context.- Parameters:
tracer- tracer to use- Returns:
- updated builder instance
- See Also:
-
weight
Weight of the feature registered with WebServer. 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- weight of tracing feature- Returns:
- updated builder instance
- See Also:
-
clearSockets
Clear all sockets.- Returns:
- updated builder instance
- See Also:
-
sockets
Sockets to trace.If empty, all sockets will be traced. The default socket without any tag, additional sockets with a tag with the socket name.
- Parameters:
sockets- set of sockets to trace- Returns:
- updated builder instance
- See Also:
-
addSockets
Sockets to trace.If empty, all sockets will be traced. The default socket without any tag, additional sockets with a tag with the socket name.
- Parameters:
sockets- set of sockets to trace- Returns:
- updated builder instance
- See Also:
-
addSocket
Sockets to trace.If empty, all sockets will be traced. The default socket without any tag, additional sockets with a tag with the socket name.
- Parameters:
socket- add single set of sockets to trace- Returns:
- updated builder instance
- See Also:
-
waitTracingEnabled
Whether waiting due to concurrency limit constraints should be traced.- Parameters:
waitTracingEnabled- true if wait-time spans should be created; false otherwise- Returns:
- updated builder instance
- See Also:
-
envConfig
Use the provided configuration as a default for any request.- Returns:
- default web server tracing configuration
-
pathConfigs
Path specific configuration of tracing.- Returns:
- configuration of tracing for specific paths
-
tracer
Tracer to use to extract inbound span context.- Returns:
- tracer to use
-
weight
public double weight()Weight of the feature registered with WebServer. 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.- Returns:
- weight of tracing feature
-
sockets
Sockets to trace.If empty, all sockets will be traced. The default socket without any tag, additional sockets with a tag with the socket name.
- Returns:
- set of sockets to trace
-
waitTracingEnabled
public boolean waitTracingEnabled()Whether waiting due to concurrency limit constraints should be traced.- Returns:
- true if wait-time spans should be created; false otherwise
-
toString
- Overrides:
toStringin classObserverConfigBase.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TracingObserverConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classObserverConfigBase.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TracingObserverConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classObserverConfigBase.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends TracingObserverConfig>
-
config(io.helidon.config.Config)