-
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/deltatocumulative]: do not drop Gauge, Summary #35372
[processor/deltatocumulative]: do not drop Gauge, Summary #35372
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.
thanks!
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.
I'm approving, as without this the component is barely usable. Tests can be improved on a follow-up PR.
require.NoError(t, err) | ||
|
||
if diff := compare.Diff([]pmetric.Metrics{out}, sink.AllMetrics()); diff != "" { | ||
t.Fatal(diff) |
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.
t.Fatal? Why not "assert.Fail()", as the other ones? Or assert.Len(t, "", compare.Diff(...))
?
…etry#35372) **Description:** As an oversight, open-telemetry#33286 not only started dropping metrics without datapoints, but also all Gauges and Summaries. This change correctly passes those types through unaltered. **Link to tracking Issue:** Fixes open-telemetry#35284 **Testing:** `TestIgnore` was added _before_ fixing. It fails on current main, passes after this change **Documentation:** not needed --------- Co-authored-by: Juraci Paixão Kröhling <[email protected]>
Description:
As an oversight, #33286 not only started dropping metrics without datapoints, but also all Gauges and Summaries.
This change correctly passes those types through unaltered.
Link to tracking Issue: Fixes #35284
Testing:
TestIgnore
was added before fixing. It fails on current main, passes after this changeDocumentation: not needed