Skip to content

Conversation

@jack-berg
Copy link
Member

Addressing post-merge comments on #6015.

Fixing a few things that might qualify as regressions:

  • After Exponential Histogram support to the Prometheus exporter #6015, we don't ensure that the metric name is sanitized after appending the unit. This means that disallowed characters in the unit can cause errors.
  • We stopped converting unit 1 to ratio in the simple case. I.e. we convert 1{foo} to ratio, but 1 result in null. Not sure why but I think that's wrong.
@jack-berg jack-berg requested a review from a team January 10, 2024 18:33
@codecov
Copy link

codecov bot commented Jan 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d9f9812) 91.01% compared to head (f24e0cb) 91.07%.

Additional details and impacted files
@@ Coverage Diff @@ ## main #6138 +/- ## ============================================ + Coverage 91.01% 91.07% +0.06%  - Complexity 5702 5706 +4  ============================================ Files 630 630 Lines 16710 16711 +1 Branches 1656 1657 +1 ============================================ + Hits 15208 15219 +11  + Misses 1047 1039 -8  + Partials 455 453 -2 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jack-berg
Copy link
Member Author

Copy link
Contributor

@psx95 psx95 left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the post-merge comments, @jack-berg !

@jack-berg jack-berg changed the title Restore prometheus metric name mapper tests Restore prometheus metric name mapper tests, fix regressions Jan 11, 2024
@jack-berg
Copy link
Member Author

Will merge and include in 1.34.1 patch in a few hours if there are no additional commends from @psx95 or @fstab.

Copy link
Contributor

@psx95 psx95 left a comment

Choose a reason for hiding this comment

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

Looks good now! Thank you for addressing the concerns! 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants