Class TracingObserverConfig.BuilderBase.TracingObserverConfigImpl
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
io.helidon.webserver.observe.tracing.TracingObserverConfig.BuilderBase.TracingObserverConfigImpl
- All Implemented Interfaces:
Prototype.Api
,Prototype.Factory<TracingObserver>
,ObserverConfigBase
,TracingObserverConfig
,Supplier<TracingObserver>
- Enclosing class:
TracingObserverConfig.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends TracingObserverConfig>
protected static class TracingObserverConfig.BuilderBase.TracingObserverConfigImpl
extends ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
implements TracingObserverConfig, Supplier<TracingObserver>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.observe.ObserverConfigBase
ObserverConfigBase.Builder, ObserverConfigBase.BuilderBase<BUILDER extends ObserverConfigBase.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ObserverConfigBase> Nested classes/interfaces inherited from interface io.helidon.webserver.observe.tracing.TracingObserverConfig
TracingObserverConfig.Builder, TracingObserverConfig.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends TracingObserverConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TracingObserverConfigImpl
(TracingObserverConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new instance of the runtime type from this config object.Use the provided configuration as a default for any request.boolean
get()
int
hashCode()
name()
Name of this observer.Path specific configuration of tracing.sockets()
Sockets to trace.toString()
tracer()
Tracer to use to extract inbound span context.boolean
Whether waiting due to concurrency limit constraints should be traced.double
weight()
Weight of the feature registered with WebServer.Methods inherited from class io.helidon.webserver.observe.ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
enabled, name
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.webserver.observe.ObserverConfigBase
enabled
-
Constructor Details
-
TracingObserverConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<TracingObserver>
- Returns:
- new configured runtime instance
-
get
- Specified by:
get
in interfaceSupplier<TracingObserver>
-
envConfig
Description copied from interface:TracingObserverConfig
Use the provided configuration as a default for any request.- Specified by:
envConfig
in interfaceTracingObserverConfig
- Returns:
- default web server tracing configuration
-
pathConfigs
Description copied from interface:TracingObserverConfig
Path specific configuration of tracing.- Specified by:
pathConfigs
in interfaceTracingObserverConfig
- Returns:
- configuration of tracing for specific paths
-
tracer
Description copied from interface:TracingObserverConfig
Tracer to use to extract inbound span context.- Specified by:
tracer
in interfaceTracingObserverConfig
- Returns:
- tracer to use
-
weight
public double weight()Description copied from interface:TracingObserverConfig
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.- Specified by:
weight
in interfaceTracingObserverConfig
- Returns:
- weight of tracing feature
-
sockets
Description copied from interface:TracingObserverConfig
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.
- Specified by:
sockets
in interfaceTracingObserverConfig
- Returns:
- set of sockets to trace
-
waitTracingEnabled
public boolean waitTracingEnabled()Description copied from interface:TracingObserverConfig
Whether waiting due to concurrency limit constraints should be traced.- Specified by:
waitTracingEnabled
in interfaceTracingObserverConfig
- Returns:
- true if wait-time spans should be created; false otherwise
-
toString
- Overrides:
toString
in classObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
-
equals
- Overrides:
equals
in classObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
-
name
String name()Description copied from interface:ObserverConfigBase
Name of this observer. Each observer should provide its own default for this property.- Specified by:
name
in interfaceObserverConfigBase
- Returns:
- observer name
-