Repository navigation
Isolate nonfatal failures in LogRecordProcessor.onEmit - #9067
Open
ultramancode wants to merge 1 commit into
Open
ultramancode wants to merge 1 commit into
ultramancode wants to merge 1 commit into
Conversation
Signed-off-by: Taewoong Kim <ktw2172@gmail.com>
Pull request dashboard statusWaiting on reviewers · refreshed 2026-11-26 11:46 UTC Review the latest changes. Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9067 +/- ##
=========================================
Coverage 90.56% 90.56%
- Complexity 11220 11223 +3
=========================================
Files 1032 1033 +1
Lines 30599 30607 +8
Branches 4010 4010
=========================================
+ Hits 27711 27720 +9
Misses 1913 1913
+ Partials 975 974 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9066
Log nonfatal failures from
LogRecordProcessor.onEmitso they don't propagate to application code. If one processor throws a nonfatal exception, the remaining processors still receive the same log record. Fatal errors are still rethrown.Added tests for both nonfatal and fatal failures, including a case where the first processor throws a nonfatal exception and the second still receives the record.
I used
ThrottlingLoggerto limit repeated warnings. The OTLP HTTP and gRPC exporters already use it too, so I think it makes sense to move it to animplpackage alongsideThrowableUtilin the follow-up to #9022.