Skip to content

Auto-configure testing support for tracing #39451

Open
@marcingrzejszczak

Description

@marcingrzejszczak

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions