Skip to content

MatchedPath is empty on fallback #308

@edelanghe-ledger

Description

@edelanghe-ledger

When using a axum fallback, the service OtelAxumService will record an empty http.path and only the method in otel.name.
The reason is that MatchedPath is empty since it doesn't have any pattern to match.

It's basically the same issue that was encountered with nested path in this previous issue: #54

Could we bring back the related fix : fe2cee7 ?

It could be configurable under a feature flag if needed.
The best would be for users to be able to record an handler that will extract the http route from Request as they want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions