public class ServerTracingDynamicFeature extends Object implements javax.ws.rs.container.DynamicFeature
SpanFinishingFilter for correct functionality. Spans are created in JAX-RS filter
and finished in servlet filter.| Modifier and Type | Class and Description |
|---|---|
static class |
ServerTracingDynamicFeature.Builder
Builder for creating JAX-RS dynamic feature for tracing server requests.
|
| Constructor and Description |
|---|
ServerTracingDynamicFeature()
When using this constructor application has to call
GlobalTracer.register(io.opentracing.Tracer) to register
tracer instance. |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.microprofile.opentracing.Traced |
closestTracedAnnotation(javax.ws.rs.container.ResourceInfo resourceInfo) |
void |
configure(javax.ws.rs.container.ResourceInfo resourceInfo,
javax.ws.rs.core.FeatureContext context) |
protected String |
operationName(javax.ws.rs.container.ResourceInfo resourceInfo) |
protected boolean |
tracingDisabled(javax.ws.rs.container.ResourceInfo resourceInfo) |
public ServerTracingDynamicFeature()
GlobalTracer.register(io.opentracing.Tracer) to register
tracer instance. Ideally it should be called in ServletContextListener.
For a custom configuration use ServerTracingDynamicFeature.Builder.build().public void configure(javax.ws.rs.container.ResourceInfo resourceInfo,
javax.ws.rs.core.FeatureContext context)
configure in interface javax.ws.rs.container.DynamicFeatureprotected org.eclipse.microprofile.opentracing.Traced closestTracedAnnotation(javax.ws.rs.container.ResourceInfo resourceInfo)
protected boolean tracingDisabled(javax.ws.rs.container.ResourceInfo resourceInfo)
protected String operationName(javax.ws.rs.container.ResourceInfo resourceInfo)
Copyright © 2018–2022. All rights reserved.