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
Modifier and Type Method Description protected void
resourceInfo(javax.ws.rs.container.ResourceInfo resourceInfo, SpanCustomizer customizer)
Invoked prior to request invocation duringContainerRequestFilter.filter(ContainerRequestContext)
where the resource info was injected from context.
-
Field Details
-
NOOP
Adds no data to the request -
RESOURCE_CLASS
Simple class name that processed the request. ex BookResource- See Also:
- Constant Field Values
-
RESOURCE_METHOD
Method name that processed the request. ex listOfBooks- See Also:
- Constant Field Values
-
-
Constructor Details
-
ContainerParser
public ContainerParser()
-
-
Method Details
-
resourceInfo
protected void resourceInfo(javax.ws.rs.container.ResourceInfo resourceInfo, 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.
-