Class 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 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
    • Constructor Detail

      • EventParser

        public EventParser()
    • Method Detail

      • requestMatched

        protected void requestMatched​(org.glassfish.jersey.server.monitoring.RequestEvent event,
                                      brave.SpanCustomizer customizer)
        Invoked prior to request invocation during RequestEventListener.onEvent(RequestEvent) where the event type is RequestEvent.Type.REQUEST_MATCHED

        Adds the tags RESOURCE_CLASS and RESOURCE_METHOD. Override or use NOOP to change this behavior.