Skip to content

@NewSpan/@SpanTag not working on interface methods #41281

@janchristian-haddorp

Description

@janchristian-haddorp

The combination @NewSpan/@SpanTag seems not fully working on interface methods - like JPA repo methods.

Instead of creating a new span for the actual repo call and parent span is getting duplicated. All declared span tags are also added to parent span.

In contrast the @Observed annotation works quite well on both - normal class methods as well as interface methods.

Tested with latest Spring Boot 3.3.1 release.

Is this topic Spring Boot related or has it been addressed to Micrometer directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions