ZipkinV2Reporter implements Reporter { @Override public void report(JaegerSpan span) { reporter.report(V2SpanConverter.convertSpan(span)); } ZipkinV2Reporter(AsyncReporter<Span> reporter); @Override void report(JaegerSpan span); @Override void close(); final AsyncReporter<zipkin2.Span> reporter; }
@Test public void testConvertsAndSendsSpan() { JaegerSpan span = tracer.buildSpan("raza").start(); span.finish(); reporter.report(span); zipkinReporter.flush(); List<List<zipkin2.Span>> spans = zipkinRule.getTraces(); assertEquals(spans.get(0).get(0).name(), "raza"); }