-
Notifications
You must be signed in to change notification settings - Fork 838
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
feat(instrumentation-grpc): monitor error events with events.errorMonitor #5369
Conversation
3632936
to
ab7dd28
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5369 +/- ##
=======================================
Coverage 94.62% 94.62%
=======================================
Files 318 318
Lines 8038 8039 +1
Branches 1687 1687
=======================================
+ Hits 7606 7607 +1
Misses 432 432
|
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.
overall looks good, one comment.
Co-authored-by: Marc Pichler <[email protected]>
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.
thanks 👍
I think this closes #225, it looks like all occurrences of this are now addressed. 👍 |
Ah nevermind, it's also talking about side-effects from other places. Let's leave it open for now. |
Which problem is this PR solving?
errorMonitor
should be preferred over'error'
event handlers for instrumentation, as the latter alters the behavior of the server if the user has not added their own error handler.Related to: #225. I'm not sure we want to close the issue based on this fix.
Short description of the changes
This commit updates instrumentation-grpc to utilize
errorMonitor
instead of'error'
event handlers. This makes the instrumented server behave more like it would without instrumentation.Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
'error'
handler count of the server.Checklist: