-
Notifications
You must be signed in to change notification settings - Fork 1.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
If filterprocessor filters all data, stop further processing #1500
If filterprocessor filters all data, stop further processing #1500
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #1500 +/- ##
==========================================
+ Coverage 90.98% 91.02% +0.03%
==========================================
Files 239 239
Lines 16744 16750 +6
==========================================
+ Hits 15235 15247 +12
+ Misses 1080 1077 -3
+ Partials 429 426 -3
Continue to review full report at Codecov.
|
@bogdandrutu, @james-bebbington please review when you get a chance, 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.
LGTM. Not required for this PR but it would be good to use obsreport
in this processor at some point to report on how much data is filtered out.
@bogdandrutu could you take a look when you get a minute? Thanks! |
Oh, cool, I was not aware of |
…n-telemetry#1501) * Reverse order of attribute precedence when merging two Resources This reflects a change in the specification itself. open-telemetry/opentelemetry-specification#1345 * Resolves open-telemetry#1500 Co-authored-by: Tyler Yahn <[email protected]>
* Add syslog receiver * Update components.md
Description:
Add a sentinel error to
processhelper
package that can be returned by other processors to indicate that the incoming batch of metrics data has been determined to be irrelevant and should be skipped for any further processing. If skipped,processhelper
will nullify the sentinel error and returnnil
.Have the filterprocessor return the sentinel error if all metrics are filtered out by the filters. This prevents any further unnecessary processing and exporting of the empty metrics data.
Link to tracking Issue: #1491
Testing: Unit tests
Documentation: N/A, no user-facing changes to fix big (though I did fix some typos in existing doc).