Search in sources :

Example 1 with Builder

use of io.jaegertracing.internal.JaegerTracer.Builder in project jaeger-client-java by jaegertracing.

the class JaegerTracerTest method testDefaultConstructor.

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

Example 2 with Builder

use of io.jaegertracing.internal.JaegerTracer.Builder in project jaeger-client-java by jaegertracing.

the class JaegerTracerTest method testTraceId64Bit.

@Test
public void testTraceId64Bit() {
    JaegerTracer tracer = new Builder("name").build();
    assertFalse(tracer.isUseTraceId128Bit());
}
Also used : Builder(io.jaegertracing.internal.JaegerTracer.Builder) Test(org.junit.Test)

Aggregations

Builder (io.jaegertracing.internal.JaegerTracer.Builder)2 Test (org.junit.Test)2 RemoteReporter (io.jaegertracing.internal.reporters.RemoteReporter)1