JaegerTracerResolver extends TracerResolver { @Override protected JaegerTracer resolve() { return new JaegerTracerFactory().getTracer(); }    }
@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); }