Search in sources :

Example 1 with TracingBootstrap

use of brave.jaxrs2.TracingBootstrap in project brave by openzipkin.

the class ITDeclarativeSampling method init.

@Override
public void init(ServletContextHandler handler) {
    // Adds application programmatically as opposed to using web.xml
    handler.addServlet(new ServletHolder(new HttpServletDispatcher()), "/*");
    handler.addEventListener(new TracingBootstrap(httpTracing, new Resource()));
}
Also used : TracingBootstrap(brave.jaxrs2.TracingBootstrap) ServletHolder(org.eclipse.jetty.servlet.ServletHolder) HttpServletDispatcher(org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher)

Aggregations

TracingBootstrap (brave.jaxrs2.TracingBootstrap)1 ServletHolder (org.eclipse.jetty.servlet.ServletHolder)1 HttpServletDispatcher (org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher)1