LoggingSpanReporter extends SpanReporter { @Override public void report(SpanContextInformation context, SpanWrapper spanWrapper) { logger.info(getLogMessage(spanWrapper)); }  @Override void init(ConfigurationRegistry configuration); @Override void report(SpanContextInformation context, SpanWrapper spanWrapper); @Override boolean isActive(SpanContextInformation spanContext);  }
@Test public void report() throws Exception { final SpanWrapper span = new SpanWrapper(mockTracer.buildSpan("test").start(), "test", 0, 0, Collections.emptyList(), new ConcurrentHashMap<>()); span.setTag("foo.bar", "baz"); final String logMessage = loggingSpanReporter.getLogMessage(span); assertTrue(logMessage.contains("foo.bar: baz")); }