Search in sources :

Example 1 with Builder

use of com.uber.jaeger.Tracer.Builder in project jaeger-client-java by jaegertracing.

the class TracerTest method testDefaultConstructor.

@Test
public void testDefaultConstructor() {
    Tracer tracer = new Builder("name").build();
    assertTrue(tracer.getReporter() instanceof RemoteReporter);
    // no exception
    tracer.buildSpan("foo").start().finish();
}
Also used : RemoteReporter(com.uber.jaeger.reporters.RemoteReporter) Builder(com.uber.jaeger.Tracer.Builder) Test(org.junit.Test)

Aggregations

Builder (com.uber.jaeger.Tracer.Builder)1 RemoteReporter (com.uber.jaeger.reporters.RemoteReporter)1 Test (org.junit.Test)1