Class SpanCustomizingApplicationEventListener

  • All Implemented Interfaces:
    org.glassfish.jersey.server.monitoring.ApplicationEventListener, org.glassfish.jersey.server.monitoring.RequestEventListener

    @Provider
    public class SpanCustomizingApplicationEventListener
    extends Object
    implements org.glassfish.jersey.server.monitoring.ApplicationEventListener, org.glassfish.jersey.server.monitoring.RequestEventListener
    Adds application-tier data to an existing http span via EventParser. This also sets the request property "http.route" so that it can be used in naming the http span.

    Use this instead of TracingApplicationEventListener when you start traces at the servlet level via brave.servlet.TracingFilter.

    • Method Detail

      • onEvent

        public void onEvent​(org.glassfish.jersey.server.monitoring.ApplicationEvent event)
        Specified by:
        onEvent in interface org.glassfish.jersey.server.monitoring.ApplicationEventListener
      • onRequest

        public org.glassfish.jersey.server.monitoring.RequestEventListener onRequest​(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)
        Specified by:
        onRequest in interface org.glassfish.jersey.server.monitoring.ApplicationEventListener
      • onEvent

        public void onEvent​(org.glassfish.jersey.server.monitoring.RequestEvent event)
        Specified by:
        onEvent in interface org.glassfish.jersey.server.monitoring.RequestEventListener