Skip to content

Add original path template as request attribute #1054

@anthony-legay

Description

@anthony-legay

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

Hi ! In order to use the URL template as an OpenTelemetry span attribute (url.template), I wanted to know if there was a way to retrieve the original template (as described in the Ktorfit annotation). I could not find it (maybe I missed something ?)

Describe the solution you'd like

I tried to made the change in this PR #1044 and add the attribute in the AttributesCodeGenerator
Does anyone see any issue with this ? Thanks in advance !
First contribution for me here.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions