@ConstrainedTo(value=SERVER) @PreMatching public abstract class AbstractTracingFilter extends Object implements ContainerRequestFilter, ContainerResponseFilter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
SPAN_PROPERTY
Name of the property the created span is stored in on request filter.
|
| Constructor and Description |
|---|
AbstractTracingFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
configureSpan(Tracer.SpanBuilder spanBuilder)
Configure additional properties of a span that is named and has a parent.
|
void |
filter(ContainerRequestContext requestContext) |
void |
filter(ContainerRequestContext requestContext,
ContainerResponseContext responseContext) |
protected abstract String |
spanName(ContainerRequestContext context)
Create name of the newly created span.
|
protected abstract boolean |
tracingEnabled(ContainerRequestContext context)
Whether this tracing filter is enabled.
|
protected static final String SPAN_PROPERTY
public void filter(ContainerRequestContext requestContext)
filter in interface ContainerRequestFilterpublic void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException
filter in interface ContainerResponseFilterIOExceptionprotected abstract boolean tracingEnabled(ContainerRequestContext context)
context - request contextprotected abstract String spanName(ContainerRequestContext context)
context - request contextprotected abstract void configureSpan(Tracer.SpanBuilder spanBuilder)
spanBuilder - builder of the new spanCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.