Skip to content
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

Merged
merged 5 commits into from
Sep 24, 2024

Conversation

sh0rez
Copy link
Member

@sh0rez sh0rez commented Sep 23, 2024

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 change

Documentation: not needed

Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

thanks!

@jpkrohling jpkrohling added the release:blocker The issue must be resolved before cutting the next release label Sep 24, 2024
Copy link
Member

@jpkrohling jpkrohling left a 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)
Copy link
Member

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(...)) ?

@jpkrohling jpkrohling merged commit 12790ef into open-telemetry:main Sep 24, 2024
162 of 163 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 24, 2024
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/deltatocumulative release:blocker The issue must be resolved before cutting the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[processor/deltatocumulative] Incorrectly dropping gauge metrics
4 participants