Open
Description
Currently there's no out of the box way to set up a test with tracing turned on that would collect spans in a queue for further analysis. What is required now from the user is to either use a TestSpanHandler
from Brave or ArrayListSpanReporter
from OTel.
With the changes in this PR we're introducing an abstract concept of aggregating spans for Micrometer Tracing API.
In Spring Boot we would need the @TracingTest
test slice that would turn on the @AutoConfigureObservability
with tracing on and would register the TestSpanHandler
as a bean.
related issue