-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[reciever/prometheusremotewritereceiver] add help ref #38764
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for the PR still being in draft mode? Anything you'd like to fix before marking as ready?
// The only difference between ts 0 and 1 is the value assigned in the HelpRef. According to the spec | ||
// Ref: https://opentelemetry.io/docs/specs/otel/metrics/data-model/#opentelemetry-protocol-data-model, | ||
// the HelpRef(description) field is not considered an identifying property. | ||
// This means that if you have two metrics with the same name, unit, scope, and resource attributes but different description values, they are still considered to be the same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really really nice find! thanks for paying attention to the spec!
Nope. I was just waiting for your approval to make sure that this make sense. Moving to ready mode ✌🏽 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about adding a test that asserts the out of bounds error for helpRef as well?
Sorry, I completely forgot it. Adding... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! You're on fire today :)
…#38764) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR belongs to part of the Linux foundation mentee program. Here we are adding the help ref attribute to metric following the rules described [here](https://opentelemetry.io/docs/specs/otel/metrics/data-model/#opentelemetry-protocol-data-model-producer-recommendations) <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes part of [open-telemetry#37277](open-telemetry#37277)
Description
This PR belongs to part of the Linux foundation mentee program.
Here we are adding the help ref attribute to metric following the rules described here
Link to tracking issue
Fixes part of #37277