Class TracingFeature
java.lang.Object
io.helidon.nima.webserver.tracing.TracingFeature
- All Implemented Interfaces:
Weighted,HttpFeature,ServerLifecycle,Comparable<Weighted>,Supplier<HttpFeature>
Tracing configuration for webserver.
Tracing configuration has two components - an overall (application wide)
TracingConfig
and a path specific PathTracingConfig.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface io.helidon.common.Weighted
DEFAULT_WEIGHT -
Method Summary
Modifier and TypeMethodDescriptionstatic TracingFeature.Builderbuilder()A fluent API builder to create tracing support.static TracingFeatureCreate a tracing configuration that is enabled for all paths and spans (that are enabled by default).static TracingFeatureCreate a new tracing support base onConfig.static TracingFeaturecreate(Tracer tracer, TracingConfig configuration) Create a new tracing support base onTracingConfig.voidsetup(HttpRouting.Builder routing) Method to set up a feature.doubleweight()Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.nima.webserver.http.HttpFeature
getMethods inherited from interface io.helidon.nima.webserver.ServerLifecycle
afterStop, beforeStart
-
Method Details
-
create
Create a tracing configuration that is enabled for all paths and spans (that are enabled by default).- Parameters:
tracer- tracer to use for tracing spans created by this feature- Returns:
- tracing configuration to register with
HttpRouting.Builder.register(java.util.function.Supplier[])
-
create
Create a new tracing support base onTracingConfig.- Parameters:
tracer- tracer to use for tracing spans created by this featureconfiguration- traced system configuration- Returns:
- a new tracing support to register with web server routing
-
create
Create a new tracing support base onConfig.- Parameters:
tracer- tracer to use for tracing spans created by this featureconfig- to base this support on- Returns:
- a new tracing support to register with web server routing
-
builder
A fluent API builder to create tracing support.- Returns:
- a new builder instance
-
setup
Description copied from interface:HttpFeatureMethod to set up a feature.- Specified by:
setupin interfaceHttpFeature- Parameters:
routing- routing builder
-
weight
public double weight()Description copied from interface:WeightedWeight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use theWeightannotation rather than implementing this interface as long as it is supported by the library using thisWeighted.
-