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

Fix processor metrics not being reported initially with 0 values #10857

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Aug 12, 2024

This change reverts #10693, which had an unintentional behavior change that made the processor helper report metrics only if they got values other than 0.

Fixes #10855

After open-telemetry#10693, the processor helper only reports metrics if they got any values other than 0.

As a user, I would always prefer seeing 0 data points reported for any data sent through a processor for otelcol_processor_dropped_spans and otelcol_processor_refused_spans metrics.
@dmitryax dmitryax requested review from a team and TylerHelmuth August 12, 2024 19:34
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.65%. Comparing base (643c17e) to head (c44914d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10857   +/-   ##
=======================================
  Coverage   91.64%   91.65%           
=======================================
  Files         406      406           
  Lines       19001    19023   +22     
=======================================
+ Hits        17414    17436   +22     
  Misses       1227     1227           
  Partials      360      360           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dmitryax dmitryax merged commit 06271a6 into open-telemetry:main Aug 12, 2024
49 checks passed
@github-actions github-actions bot added this to the next release milestone Aug 12, 2024
@dmitryax dmitryax deleted the fix-processor-metrics branch August 12, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal processorhelper metrics are not reported until they have any non-zero values
2 participants