@Test public void testGetTracerExisting() { GlobalTracer.register(new MockTracer()); OpenTracingHelper helper = new OpenTracingHelper(null); Tracer tracer = helper.getTracer(); assertNotNull(tracer); assertTrue(tracer.buildSpan("Test").start() instanceof MockSpan); }
public Tracer getTracer() { if (tracer == null) { initTracer(); } return tracer; }
OpenTracingHelper extends Helper { public Tracer getTracer() { if (tracer == null) { initTracer(); } return tracer; } }
OpenTracingHelper extends Helper { public Tracer getTracer() { if (tracer == null) { initTracer(); } return tracer; } OpenTracingHelper(Rule rule); }
OpenTracingHelper extends Helper { public Tracer getTracer() { if (tracer == null) { initTracer(); } return tracer; } OpenTracingHelper(Rule rule); Tracer getTracer(); void associateSpan(Object obj, Span span); Span retrieveSpan(Object obj); void finishedSpan(Object key, Span span); boolean isFinished(Object key); void setState(Object obj, int value); int getState(Object obj); boolean ignore(Object obj); }
OpenTracingHelper extends Helper { public Tracer getTracer() { if (tracer == null) { initTracer(); } return tracer; } OpenTracingHelper(Rule rule); Tracer getTracer(); void associateSpan(Object obj, Span span); Span retrieveSpan(Object obj); void finishedSpan(Object key, Span span); boolean isFinished(Object key); void setState(Object obj, int value); int getState(Object obj); boolean ignore(Object obj);  }