java.lang.Object
io.helidon.tracing.jersey.AbstractTracingFilter
io.helidon.tracing.jersey.TracingFilter
- All Implemented Interfaces:
ContainerRequestFilter,ContainerResponseFilter
Adds tracing of (overall) Jersey calls.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureSpan(Span.Builder spanBuilder) Configure additional properties of a span that is named and has a parent.protected StringspanName(ContainerRequestContext context) Create name of the newly created span.protected booleantracingEnabled(ContainerRequestContext context) Whether this tracing filter is enabled.Methods inherited from class io.helidon.tracing.jersey.AbstractTracingFilter
filter, filter, url
-
Constructor Details
-
TracingFilter
public TracingFilter()
-
-
Method Details
-
configureSpan
Description copied from class:AbstractTracingFilterConfigure additional properties of a span that is named and has a parent.- Overrides:
configureSpanin classAbstractTracingFilter- Parameters:
spanBuilder- builder of the new span
-
tracingEnabled
Description copied from class:AbstractTracingFilterWhether this tracing filter is enabled.- Specified by:
tracingEnabledin classAbstractTracingFilter- Parameters:
context- request context- Returns:
- true if filter should trigger and start a new span
-
spanName
Description copied from class:AbstractTracingFilterCreate name of the newly created span.- Specified by:
spanNamein classAbstractTracingFilter- Parameters:
context- request context- Returns:
- name of the span to be created
-