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

Fix metrics with high cardinality in otelhttp (#3765) #3980

Closed
wants to merge 1 commit into from

Conversation

davendu
Copy link

@davendu davendu commented Jun 13, 2023

Change template to add a new method semconvutil.HTTPServerRequestMetric and use it for metrics. This should reduce attributes with high cardinality being introduced into the metrics.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 13, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: davendu / name: Daven Du (a927158)

@davendu davendu marked this pull request as ready for review June 13, 2023 10:34
@davendu davendu requested a review from a team June 13, 2023 10:34
Copy link
Member

@dmathieu dmathieu left a comment

Choose a reason for hiding this comment

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

I don't think this is the proper approach. It's adding some weird complexity, and whether an attribute has too much cardinality or not is very subjective.

The solution being discussed in open-telemetry/opentelemetry-specification#3061 seems much better.

@davendu
Copy link
Author

davendu commented Jun 13, 2023

The solution being discussed in open-telemetry/opentelemetry-specification#3061 seems much better.

Didn't knew the View & Advice API before. You are correct, that solution is quite more elegant.

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.

2 participants