-
Notifications
You must be signed in to change notification settings - Fork 142
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
✨ [RUMF-921] differentiate handled and unhandled errors #886
The head ref may contain hidden characters: "aymeric/differentiate-handled-and-not\u2014handled-errors"
✨ [RUMF-921] differentiate handled and unhandled errors #886
Conversation
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 so far :)
Codecov Report
@@ Coverage Diff @@
## main #886 +/- ##
==========================================
+ Coverage 89.09% 89.12% +0.03%
==========================================
Files 81 81
Lines 3787 3790 +3
Branches 845 846 +1
==========================================
+ Hits 3374 3378 +4
+ Misses 413 412 -1
Continue to review full report at Codecov.
|
d7853c8
to
cceb0e7
Compare
/** | ||
* Whether the error has been handled manually in the source code or not | ||
*/ | ||
readonly handling?: 'handled' | 'unhandled' |
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.
should we also add this field to logs error?
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.
I've asked Maxime and for him, it's good enough for now.
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
Motivation
In the context of RUM, an error is considered handled as long as it has been reported manually in the code (e.g console.error, rumAgent.addError). Errors collected through global error/exception listeners are considered unhandled.
This new tag differentiate handled and unhandled errors.
Changes
Add
handling
flag to all errors reported by RUM except Network and Agent errorsTesting
Unit, Locally
I have gone over the contributing documentation.