Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove path from HTTP instrumentation span name. #161

Merged
merged 6 commits into from
May 18, 2023

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented May 16, 2023

Closes #151

Currently the path is included in HTTP instrumentation span names. This is a high-cardinality value and not specification compliant. It is removed from the span name in this PR.

Note that in both the gin and mux frameworks there are low-cardinality templatized path. However, they are not available from the places were currently instrument. Further investigation is needed to determine if there are better places we can instrument or access these templatized paths.

@MrAlias MrAlias force-pushed the http-span-names branch 2 times, most recently from 7b485e6 to f9281c9 Compare May 17, 2023 14:22
MrAlias added 3 commits May 17, 2023 07:28
Only use the method name because the path is likely going to have a high
cardinality.
@MrAlias MrAlias force-pushed the http-span-names branch from f9281c9 to 321c679 Compare May 17, 2023 14:38
@MrAlias MrAlias changed the title Update HTTP instrumentation span name. Remove path from HTTP instrumentation span name. May 17, 2023
@MrAlias MrAlias marked this pull request as ready for review May 17, 2023 15:11
@MrAlias MrAlias requested a review from a team May 17, 2023 15:11
Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Robert Pająk <[email protected]>
@MrAlias MrAlias merged commit 3922af9 into open-telemetry:main May 18, 2023
@MrAlias MrAlias deleted the http-span-names branch May 18, 2023 14:41
@MrAlias MrAlias mentioned this pull request Jul 6, 2023
@MrAlias MrAlias added this to the unspecified milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove high-cardinality paths from HTTP span names
4 participants