Skip to content

Automatically remove consecutive slashes in HTTP span names. #14544

@h0cheung

Description

@h0cheung

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

In certain project implementations, when users generate HTTP routes based on string concatenation, those defining these strings may prefix and suffix each string with a forward slash (/) to prevent routing issues caused by colleagues forgetting to add the slash.

As a result, two consecutive forward slashes may appear in the route definition after concatenation. While this does not affect program execution, it ultimately appears in the Span name.

Describe the solution you'd like

We can automatically remove consecutive slashes from the route when creating the Span.

Describe alternatives you've considered

No response

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions