Search in sources :

Example 1 with TestSender

use of org.apache.cxf.systest.jaeger.TestSender in project cxf by apache.

the class OpenTracingTracingTest method setUp.

@Before
public void setUp() {
    random = new Random();
    tracer = new Configuration("tracer", new Configuration.SamplerConfiguration(ConstSampler.TYPE, 1), new Configuration.ReporterConfiguration(new TestSender())).getTracer();
    TestSender.clear();
}
Also used : TestSender(org.apache.cxf.systest.jaeger.TestSender) Random(java.util.Random) Configuration(com.uber.jaeger.Configuration) Before(org.junit.Before)

Example 2 with TestSender

use of org.apache.cxf.systest.jaeger.TestSender in project cxf by apache.

the class OpenTracingTracingTest method setUp.

@Before
public void setUp() {
    TestSender.clear();
    tracer = new Configuration("tracer-test-client", new Configuration.SamplerConfiguration(ConstSampler.TYPE, 1), new Configuration.ReporterConfiguration(new TestSender())).getTracer();
    openTracingClientProvider = new OpenTracingClientProvider(tracer);
    random = new Random();
}
Also used : TestSender(org.apache.cxf.systest.jaeger.TestSender) Configuration(com.uber.jaeger.Configuration) Random(java.util.Random) OpenTracingClientProvider(org.apache.cxf.tracing.opentracing.jaxrs.OpenTracingClientProvider) Before(org.junit.Before)

Aggregations

Configuration (com.uber.jaeger.Configuration)2 Random (java.util.Random)2 TestSender (org.apache.cxf.systest.jaeger.TestSender)2 Before (org.junit.Before)2 OpenTracingClientProvider (org.apache.cxf.tracing.opentracing.jaxrs.OpenTracingClientProvider)1