Skip to content

SpringWebTelemetry span name contains only HTTP method #8839

@jkamon

Description

@jkamon

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Interceptor created by SpringWebTelemetry creates spans named only by HTTP method. Metadata correctly contains also original URL wich would be much more specific and describing in span. Probably best solution would be to implement getRoute method on SpringWebMvcHttpAttributesGetter which would most probably generate correct name

Describe alternatives you've considered
Change in SpringWebTelemetryBuilder to allow custom name extractor would be also acceptable since user will be able to define its own name extractor which would generate more descriptive names.

Additional context
Used version 1.27.0-alpha

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions