Package brave.jersey.server
Class SpanCustomizingApplicationEventListener
- java.lang.Object
-
- brave.jersey.server.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 viaEventParser. This also sets the request property "http.route" so that it can be used in naming the http span.Use this instead of
TracingApplicationEventListenerwhen you start traces at the servlet level viabrave.servlet.TracingFilter.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpanCustomizingApplicationEventListenercreate()static SpanCustomizingApplicationEventListenercreate(EventParser parser)voidonEvent(org.glassfish.jersey.server.monitoring.ApplicationEvent event)voidonEvent(org.glassfish.jersey.server.monitoring.RequestEvent event)org.glassfish.jersey.server.monitoring.RequestEventListeneronRequest(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)
-
-
-
Method Detail
-
create
public static SpanCustomizingApplicationEventListener create()
-
create
public static SpanCustomizingApplicationEventListener create(EventParser parser)
-
onEvent
public void onEvent(org.glassfish.jersey.server.monitoring.ApplicationEvent event)
- Specified by:
onEventin interfaceorg.glassfish.jersey.server.monitoring.ApplicationEventListener
-
onRequest
public org.glassfish.jersey.server.monitoring.RequestEventListener onRequest(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)
- Specified by:
onRequestin interfaceorg.glassfish.jersey.server.monitoring.ApplicationEventListener
-
onEvent
public void onEvent(org.glassfish.jersey.server.monitoring.RequestEvent event)
- Specified by:
onEventin interfaceorg.glassfish.jersey.server.monitoring.RequestEventListener
-
-