Package brave.jersey.server
Class EventParser
- java.lang.Object
-
- brave.jersey.server.EventParser
-
public class EventParser extends Object
Jersey 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 EventParser
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 EventParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
requestMatched(org.glassfish.jersey.server.monitoring.RequestEvent event, brave.SpanCustomizer customizer)
Invoked prior to request invocation duringRequestEventListener.onEvent(RequestEvent)
where the event type isRequestEvent.Type.REQUEST_MATCHED
-
-
-
Field Detail
-
NOOP
public static final EventParser 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
-
requestMatched
protected void requestMatched(org.glassfish.jersey.server.monitoring.RequestEvent event, brave.SpanCustomizer customizer)
Invoked prior to request invocation duringRequestEventListener.onEvent(RequestEvent)
where the event type isRequestEvent.Type.REQUEST_MATCHED
Adds the tags
RESOURCE_CLASS
andRESOURCE_METHOD
. Override or useNOOP
to change this behavior.
-
-