-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[fix] Correctly add Metric Labels as Metric Attributes in OTel, not as Resource Attributes #42473
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] Correctly add Metric Labels as Metric Attributes in OTel, not as Resource Attributes #42473
Conversation
|
I will review by next Tuesday. |
|
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
|
still waiting for approval... Not stale. |
|
Sorry for the delay @mdonkers |
|
@dashpole no worries! We had a work-around for this in our product as we saw customers sending data coming from this receiver (and thus seeing some unexpected attributes). We'll need to keep the work-around in place as customers will take time to upgrade. |
Description
Fixes issue #42232
By no longer adding Metric Labels from the source metric, to the target Resource Attributes.
Instead for every metric, add the Labels as Metric Attributes (which was happening for 'histograms' already)
Link to tracking issue
Fixes #42232
Testing
As there was only a test for gauges, I extended it to validate attributes are correctly converted.