question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add method finishedTraces to MockTracer

See original GitHub issue

MockTracer has finishedSpans method, however in tests it’s necessary to assert if the spans are in the same trace, therefore, a method like List<List<MockSpan>> finishedTraces would be useful.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pavolloffaycommented, Sep 21, 2018

hi @SaumiaSinghal that is great you can ping me on https://gitter.im/opentracing/public

0reactions
SaumiaSinghalcommented, Sep 26, 2018

Thanks @jpkrohling, it works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

opentracing-java/MockTracer.java at master - GitHub
MockTracer makes it easy to test the semantics of OpenTracing instrumentation. ... public synchronized Map<String, Map<String, MockSpan>> finishedTraces() {.
Read more >
io.opentracing.mock.MockTracer.finishedSpans java code ...
<init>. Create a new MockTracer that passes through any calls to inject() and/or extract(). · buildSpan · reset. Clear the finishedSpans() queue. ·...
Read more >
MockTracer (OpenTracing-mock 0.33.0 API) - javadoc.io
Create a new MockTracer that passes through any calls to inject() and/or extract(). Method Detail. reset. public void reset(). Clear the finishedSpans() queue....
Read more >
ddtrace environment variables
sudo gedit /etc/environment. To add an environment variable, type its name, an equal sign ( = ), and the value you want the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found