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
TracingApplicationEventListener
when 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 SpanCustomizingApplicationEventListener
create()
static SpanCustomizingApplicationEventListener
create(EventParser parser)
void
onEvent(org.glassfish.jersey.server.monitoring.ApplicationEvent event)
void
onEvent(org.glassfish.jersey.server.monitoring.RequestEvent event)
org.glassfish.jersey.server.monitoring.RequestEventListener
onRequest(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:
onEvent
in interfaceorg.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 interfaceorg.glassfish.jersey.server.monitoring.ApplicationEventListener
-
onEvent
public void onEvent(org.glassfish.jersey.server.monitoring.RequestEvent event)
- Specified by:
onEvent
in interfaceorg.glassfish.jersey.server.monitoring.RequestEventListener
-
-