megaease/easeagent

Tracing Scope And Span Check

observeralone opened this issue · 0 comments

Background

In the before of the plugin, the Scope of the created Tracing must be closed in the after. Many development students do not pay attention, which will lead to Tracing concatenation confusion. In unit testing, this piece of business is also easy to ignore.

Demand

In the framework of unit testing, verify that there is a Scope and that its Scope has been closed as expected. To be more rigorous, this verification also checks whether the Span is finished or abandoned as expected.