Java Code Examples for io.opentracing.mock.MockTracer#reset()
The following examples show how to use
io.opentracing.mock.MockTracer#reset() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RewriteRuleTest.java From java-specialagent with Apache License 2.0 | 6 votes |
private static void assertTags(final RewritableTracer tracer, final MockTracer mockTracer, final String key, final List<Map<String,String>> logs) { AgentRule.$Access.configure(null, Collections.<String,String>singletonMap(null, key)); final Span span = tracer.buildSpan("op").start(); span.log(Collections.singletonMap("db.statement", "select a")); span.log(Collections.singletonMap("db.statement", "not matched")); span.finish(); final List<MockSpan> spans = mockTracer.finishedSpans(); assertEquals(1, spans.size()); final MockSpan mockSpan = spans.get(0); assertEquals(2, mockSpan.logEntries().size()); for (int i = 0; i < logs.size(); ++i) assertEquals("log " + i, logs.get(i), mockSpan.logEntries().get(i).fields()); mockTracer.reset(); }
Example 2
Source File: AssertionUtils.java From java-redis-client with Apache License 2.0 | 5 votes |
/** * Make sure we get one span once we execute a Redis command. */ static void commandCreatesNewSpan(MockTracer tracer, String commandName, Runnable command) { command.run(); assertEquals(1, tracer.finishedSpans().size()); assertEquals(commandName, tracer.finishedSpans().get(0).operationName()); tracer.reset(); }
Example 3
Source File: AwsTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 4
Source File: GoogleHttpClientTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 5
Source File: SpringWebSocketTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 6
Source File: PulsarFunctionsTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 7
Source File: AkkaHttpServerTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 8
Source File: NettyTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 9
Source File: RxJava2Test.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 10
Source File: OkHttpTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { assertNull(GlobalTracer.class.getClassLoader()); tracer.reset(); }
Example 11
Source File: CouchbaseClientTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 12
Source File: PlayWSTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 13
Source File: AsyncHttpClientTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 14
Source File: SpringWebFluxTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 15
Source File: Dubbo27AgentTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 16
Source File: CxfTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 17
Source File: DynamicAgentTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 18
Source File: ThreadTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 19
Source File: RedissonTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }
Example 20
Source File: AkkaHttpClientTest.java From java-specialagent with Apache License 2.0 | 4 votes |
@Before public void before(final MockTracer tracer) { tracer.reset(); }