Search in sources :

Example 1 with InMemoryStatsReporter

use of com.uber.jaeger.metrics.InMemoryStatsReporter in project jaeger-client-java by jaegertracing.

the class ZipkinSenderTest method setUp.

@Before
public void setUp() throws Exception {
    reporter = new InMemoryReporter();
    tracer = new Tracer.Builder("test-sender", reporter, new ConstSampler(true)).withStatsReporter(new InMemoryStatsReporter()).build();
    sender = newSender(messageMaxBytes);
    converter = new ThriftSpanConverter();
}
Also used : InMemoryReporter(com.uber.jaeger.reporters.InMemoryReporter) InMemoryStatsReporter(com.uber.jaeger.metrics.InMemoryStatsReporter) Tracer(com.uber.jaeger.Tracer) ConstSampler(com.uber.jaeger.samplers.ConstSampler) Before(org.junit.Before)

Example 2 with InMemoryStatsReporter

use of com.uber.jaeger.metrics.InMemoryStatsReporter in project jaeger-client-java by jaegertracing.

the class RemoteBaggageRestrictionManagerTest method setUp.

@Before
public void setUp() throws Exception {
    metricsReporter = new InMemoryStatsReporter();
    metrics = Metrics.fromStatsReporter(metricsReporter);
    undertest = new RemoteBaggageRestrictionManager(SERVICE_NAME, baggageRestrictionProxy, metrics, false);
}
Also used : InMemoryStatsReporter(com.uber.jaeger.metrics.InMemoryStatsReporter) Before(org.junit.Before)

Example 3 with InMemoryStatsReporter

use of com.uber.jaeger.metrics.InMemoryStatsReporter in project jaeger-client-java by jaegertracing.

the class UdpSenderTest method setUp.

@Before
public void setUp() throws Exception {
    server = startServer();
    reporter = new InMemoryReporter();
    tracer = new Tracer.Builder(SERVICE_NAME, reporter, new ConstSampler(true)).withStatsReporter(new InMemoryStatsReporter()).withTag("foo", "bar").build();
    sender = new UdpSender(destHost, destPort, maxPacketSize);
}
Also used : InMemoryReporter(com.uber.jaeger.reporters.InMemoryReporter) InMemoryStatsReporter(com.uber.jaeger.metrics.InMemoryStatsReporter) ConstSampler(com.uber.jaeger.samplers.ConstSampler) Before(org.junit.Before)

Example 4 with InMemoryStatsReporter

use of com.uber.jaeger.metrics.InMemoryStatsReporter 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

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