Interface TracingObserverConfig
- All Superinterfaces:
ObserverConfigBase, Prototype.Api, Prototype.Factory<TracingObserver>
- All Known Implementing Classes:
TracingObserverConfig.BuilderBase.TracingObserverConfigImpl
Configuration of Tracing observer.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forTracingObserver.static classTracingObserverConfig.BuilderBase<BUILDER extends TracingObserverConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends TracingObserverConfig>Fluent API builder base forTracingObserverConfig. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(TracingObserverConfig instance) Create a new fluent API builder from an existing instance.static TracingObserverConfigcreate()Create a new instance with default values.static TracingObserverConfigCreate a new instance from configuration.Use the provided configuration as a default for any request.name()Name of this observer.Path specific configuration of tracing.sockets()Sockets to trace.tracer()Tracer to use to extract inbound span context.booleanWhether waiting due to concurrency limit constraints should be traced.doubleweight()Weight of the feature registered with WebServer.Methods inherited from interface ObserverConfigBase
config, enabledMethods inherited from interface Prototype.Factory
buildModifier and TypeMethodDescriptionbuild()Create a new instance of the runtime type from this config object.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
envConfig
TracingConfig envConfig()Use the provided configuration as a default for any request.- Returns:
- default web server tracing configuration
-
pathConfigs
List<PathTracingConfig> pathConfigs()Path specific configuration of tracing.- Returns:
- configuration of tracing for specific paths
-
tracer
-
weight
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
-
waitTracingEnabled
boolean waitTracingEnabled()Whether waiting due to concurrency limit constraints should be traced.- Returns:
- true if wait-time spans should be created; false otherwise
-
name
String name()Description copied from interface:ObserverConfigBaseName of this observer. Each observer should provide its own default for this property.- Specified by:
namein interfaceObserverConfigBase- Returns:
- observer name
-