Search in sources :

Example 1 with ThreadLocalActiveSpanSource

use of io.opentracing.util.ThreadLocalActiveSpanSource in project batfish by batfish.

the class WorkItemTest method initTracer.

@BeforeClass
public static void initTracer() {
    _mockTracer = new MockTracer(new ThreadLocalActiveSpanSource(), Propagator.TEXT_MAP);
    _noopTracer = NoopTracerFactory.create();
}
Also used : MockTracer(io.opentracing.mock.MockTracer) ThreadLocalActiveSpanSource(io.opentracing.util.ThreadLocalActiveSpanSource) BeforeClass(org.junit.BeforeClass)

Aggregations

MockTracer (io.opentracing.mock.MockTracer)1 ThreadLocalActiveSpanSource (io.opentracing.util.ThreadLocalActiveSpanSource)1 BeforeClass (org.junit.BeforeClass)1