Search in sources :

Example 1 with ClientFilter

use of com.uber.jaeger.filters.jaxrs2.ClientFilter in project jaeger-client-java by jaegertracing.

the class FilterIntegrationTest method setUp.

@Before
public void setUp() throws Exception {
    metricsReporter = new InMemoryStatsReporter();
    reporter = new InMemoryReporter();
    tracer = new com.uber.jaeger.Tracer.Builder("some-op-name", reporter, new ConstSampler(true)).withStatsReporter(metricsReporter).build();
    // start the server
    server = new JerseyServer(tracer);
    server.start();
    // create the client
    client = ClientBuilder.newClient().register(new ClientFilter(tracer)).register(JacksonFeature.class);
}
Also used : InMemoryReporter(com.uber.jaeger.reporters.InMemoryReporter) JacksonFeature(org.glassfish.jersey.jackson.JacksonFeature) InMemoryStatsReporter(com.uber.jaeger.metrics.InMemoryStatsReporter) Tracer(io.opentracing.Tracer) ConstSampler(com.uber.jaeger.samplers.ConstSampler) ClientFilter(com.uber.jaeger.filters.jaxrs2.ClientFilter) Before(org.junit.Before)

Aggregations

ClientFilter (com.uber.jaeger.filters.jaxrs2.ClientFilter)1 InMemoryStatsReporter (com.uber.jaeger.metrics.InMemoryStatsReporter)1 InMemoryReporter (com.uber.jaeger.reporters.InMemoryReporter)1 ConstSampler (com.uber.jaeger.samplers.ConstSampler)1 Tracer (io.opentracing.Tracer)1 JacksonFeature (org.glassfish.jersey.jackson.JacksonFeature)1 Before (org.junit.Before)1