-
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
Calculate delta instead of rate for cumulative metrics in EMF exporter #2512
Conversation
/assign @mxiamxia |
Codecov Report
@@ Coverage Diff @@
## main #2512 +/- ##
==========================================
- Coverage 91.60% 91.59% -0.01%
==========================================
Files 450 450
Lines 22191 22183 -8
==========================================
- Hits 20327 20319 -8
Misses 1394 1394
Partials 470 470
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
a3be34d
to
c10d724
Compare
Is it possible to do the refactoring, moving the files around, first in a PR and followup with the logic change to make it easier to review? |
Split to 2 PRs: #2627 |
064f076
to
eaad1bf
Compare
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
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.
Sorry for the delay on reviewing this, I got confused on which PRs are doing what. Good to make dependent PRs as draft while dependencies are waiting
a75bf4b
to
9d4d8f7
Compare
eabae34
to
00ebaf0
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!
@mxiamxia please do another review too
Thank you! |
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.
LGTM! Thanks!
**Why do we need it?** This is a follow-up PR of open-telemetry#2627. Currently, when cumulative metrics, e.g. counter/summary, come into EMF exporter, the value will be adjusted to rate (in seconds). However, this is not the correct behavior, as what we observed from CloudWatch dashboard, the backend expects delta calculation result. In this PR, we change the rate calculation to delta regarding cumulative metrics.
Why do we need it?
This is a follow-up PR of #2627.
Currently, when cumulative metrics, e.g. counter/summary, come into EMF exporter, the value will be adjusted to rate (in seconds). However, this is not the correct behavior, as what we observed from CloudWatch dashboard, the backend expects delta calculation result.
In this PR, we change the rate calculation to delta regarding cumulative metrics.