Package io.helidon.microprofile.tracing
Class MpTracingFilter
java.lang.Object
io.helidon.tracing.jersey.AbstractTracingFilter
io.helidon.microprofile.tracing.MpTracingFilter
- All Implemented Interfaces:
ContainerRequestFilter,ContainerResponseFilter
@ConstrainedTo(SERVER)
@Priority(-2147483643)
@ApplicationScoped
public class MpTracingFilter
extends AbstractTracingFilter
Adds tracing of Jersey calls using a post-matching filter.
Microprofile Opentracing implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPost construct method, initialization procedures.protected StringspanName(ContainerRequestContext context) Create name of the newly created span.protected booleantracingEnabled(ContainerRequestContext context) Whether this tracing filter is enabled.protected Stringurl(ContainerRequestContext requestContext) Resolves host name based on the "host" header.Methods inherited from class io.helidon.tracing.jersey.AbstractTracingFilter
configureSpan, filter, filter
-
Constructor Details
-
MpTracingFilter
Create a new instance by JAX-RS.- Parameters:
resourceInfo- injected by JAX-RS implementation
-
-
Method Details
-
postConstruct
@PostConstruct public void postConstruct()Post construct method, initialization procedures. -
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
-
url
Description copied from class:AbstractTracingFilterResolves host name based on the "host" header. If this header is not set, thenURI.toString()is called.- Overrides:
urlin classAbstractTracingFilter- Parameters:
requestContext- request context- Returns:
- resolved url
-