-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
deltatocumulative re-uses memory #35872
Comments
This was fixed by #35562, right? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping |
Pinging code owners for processor/deltatocumulative: @sh0rez @RichieSams. See Adding Labels via Comments if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triaged' to set the priority and remove the needs-triaged label. |
Component(s)
processor/deltatocumulative
What happened?
The new
Linear
part of deltatocumulative does not properly clone the first datapoint, instead stores the one from thepmetric.Metrics
it receives.This leads to a racy condition where subsequent aggregations change the emitted result, possibly leading to false outputs.
To fix, change to
dp.Clone()
here:opentelemetry-collector-contrib/processor/deltatocumulativeprocessor/linear.go
Line 113 in 2b9ec02
Collector version
2b9ec02
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: