use of io.opentracing.contrib.tracerresolver.TracerResolver in project jaeger-client-java by jaegertracing.
the class JaegerTracerResolverTest method canFindTracerResolver.
@Test
public void canFindTracerResolver() {
System.setProperty(Configuration.JAEGER_SERVICE_NAME, "canFindTracerResolver");
TracerResolver tracerResolver = ServiceLoader.load(TracerResolver.class).iterator().next();
assertNotNull(tracerResolver);
assertTrue(tracerResolver instanceof JaegerTracerResolver);
JaegerTracer tracer = ((JaegerTracerResolver) tracerResolver).resolve();
assertNotNull(tracer);
}
Aggregations