-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Multiple periodic readers increment the counter abnormaly #5866
Comments
We should try to create a simpler reproduction (not using the collector) to make this easier to root-cause |
@dashpole Can I pick this task? |
@pree-dew feel free to work on this. It is likely going to be tricky to root-cause, but any help is appreciated |
Able to reproduce this with sdk
Same time, same metric is showing values as 4, 12 while the correct value is 3. Same setup giving correct value with 1 reader. So far the observation is that it is happening with |
@dashpole I have added a test case to reproduce the behaviour, it will fail as of now but will pass once the fix goes out. Debugged the issue, this is my understanding of the issue: Step 1 Step2 Step3 Step4 This is happening as the instrument is same for both pipelines and before the previous value gets cleared here, next pipeline picks the previous value set by pipeline1 and add the value, thereby making the value incorrect. With above understanding, I have able to reproduce the issue. Let me know what do you think about this? |
Description
When multiple (periodic) readers are present, metrics increase abnormally.
Originally reported here: open-telemetry/opentelemetry-collector#11327
Steps To Reproduce
Run the OpenTelemetry collector with the configuration provided in the bug above.
Expected behavior
Metrics should not increase abnormally.
The text was updated successfully, but these errors were encountered: