-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[processor/transform] Add functions for conversion of scalar metric types #10255
[processor/transform] Add functions for conversion of scalar metric types #10255
Conversation
I'll do a proper review of this tomorrow, but after a quick overview on my phone it looks promising! |
A fix I made for aggregation_temporality and is_monotonic that changed how they are accessed to make them usable in conditions was merged in preparation for 0.52.0. It might affect your new functions. |
8f3b5be
to
2e263a3
Compare
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.
Thanks for adding these functions!
/cc @anuraaga |
147a85c
to
bcbf8ac
Compare
Co-authored-by: Tyler Helmuth <[email protected]>
bcbf8ac
to
87e7f56
Compare
Rebased again; @TylerHelmuth is this waiting on something before being merged, or do you think it's OK to merge at this point? |
Would be good to get 1 more approval I think before read-to-merge. @anuraaga @bogdandrutu do you want to take a look? |
Thanks @anuraaga and @TylerHelmuth! @djaglowski could you merge this when you get the chance? |
…ypes (open-telemetry#10255) * add conversion functions for scalar metrics * fix failing factory test * lint * revert EqualsValue * update registry comment * changelog * move Bool rule down under string * Rename metric only functions header Co-authored-by: Tyler Helmuth <[email protected]> * add example in readme * capitialize Sum * Add disclaimer to README that functions may break semantics * use new testhelper package for test pointers from literals * move changelog entry to unreleased Co-authored-by: Tyler Helmuth <[email protected]>
Description:
convert_gauge_to_sum
andconvert_sum_to_gauge
functionsis_monotonic
parameter, as well.Link to tracking Issue: #10130
Testing:
Added some unit tests. Manually tested converting metrics with the processor.
Documentation:
Added new functions to docs under a "metrics only" section of the config.