LoggingSpanReporter extends SpanReporter { @Override public boolean isActive(SpanContextInformation spanContext) { return tracingPlugin.isLogSpans(); }  @Override void init(ConfigurationRegistry configuration); @Override void report(SpanContextInformation context, SpanWrapper spanWrapper); @Override boolean isActive(SpanContextInformation spanContext);  }
@Test public void isActive() throws Exception { when(tracingPlugin.isLogSpans()).thenReturn(true); assertTrue(loggingSpanReporter.isActive(null)); when(tracingPlugin.isLogSpans()).thenReturn(false); assertFalse(loggingSpanReporter.isActive(null)); }