Package brave.jaxrs2
Class ContainerParser
- java.lang.Object
-
- brave.jaxrs2.ContainerParser
-
public class ContainerParser extends Object
JAX-RS specific type used to customize traced requests based on the JAX-RS resource.Note: This should not duplicate data added by
HttpTracing
. For example, this should not add the tag "http.url".
-
-
Field Summary
Fields Modifier and Type Field Description static ContainerParser
NOOP
Adds no data to the requeststatic String
RESOURCE_CLASS
Simple class name that processed the request.static String
RESOURCE_METHOD
Method name that processed the request.
-
Constructor Summary
Constructors Constructor Description ContainerParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
resourceInfo(javax.ws.rs.container.ResourceInfo resourceInfo, brave.SpanCustomizer customizer)
Invoked prior to request invocation duringContainerRequestFilter.filter(ContainerRequestContext)
where the resource info was injected from context.
-
-
-
Field Detail
-
NOOP
public static final ContainerParser NOOP
Adds no data to the request
-
RESOURCE_CLASS
public static final String RESOURCE_CLASS
Simple class name that processed the request. ex BookResource- See Also:
- Constant Field Values
-
RESOURCE_METHOD
public static final String RESOURCE_METHOD
Method name that processed the request. ex listOfBooks- See Also:
- Constant Field Values
-
-
Method Detail
-
resourceInfo
protected void resourceInfo(javax.ws.rs.container.ResourceInfo resourceInfo, brave.SpanCustomizer customizer)
Invoked prior to request invocation duringContainerRequestFilter.filter(ContainerRequestContext)
where the resource info was injected from context.Adds the tags
RESOURCE_CLASS
andRESOURCE_METHOD
. Override or useNOOP
to change this behavior.
-
-