opentracing / opentracing-java

OpenTracing API for Java. 🛑 This library is DEPRECATED! https://github.com/opentracing/specification/issues/163
http://opentracing.io
Apache License 2.0
1.68k stars 344 forks source link

MockTracer.close() clears finishedSpans #346

Open t-8ch opened 5 years ago

t-8ch commented 5 years ago

I am trying to use MockTracer for unit testing. For this I execute my application and then validate the contents of MockTracer.finishedSpans(). For 0.32 I modified my application to take advantage of the new Tracer.close() method to properly free Tracer resources. This broke the tests because on closing the MockTracer its finishedSpans are reset.

I would argue that