-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 handled
data and differentiate between unhandled errors and crashes
#6073
Comments
We agreed that as a first step, we'd send better data in a different spot, so a) we can compare it to the bad data to see how often we're wrong, and b) we can give whoever might end up working on this eventually correct data to play with. Tasks for this first step:
|
heads-up @mydea just assigning you b/c you've taken a look at the PR. Doesn't mean we have to continue with this. |
Hey all! I recently had to take a look at Sentry source code for an unrelated issue and to my surprise I discovered that
When triaging errors, we focus our efforts first on unhandled errors before considering other issues that are handled (since, nominally, these have been correctly handled from the POV of the user). I noticed there were a couple PRs that started to address this but have since been closed. Am I misunderstanding the expected semantics for the |
Hi @taj-p thanks for reminding us about this. We had to abandon changing behaviour here due to prioritization of other projects but I this again in our team and we talked about going with a pragmatic solution here - basically a subset of the proposed changes from the RC:
This way, when users manually call We're not gonna get to this this week but I'll bring it up in planning for next week(s). Can't promise any ETA though. |
As can be seen by the linked PRs above, we had to adjust quite a few of our internal handlers/wrappers to always mark errors caught by us (i.e. automatically from the SDK) as unhandled. Here's a list for future reference:
|
I'm going to close this issue as we're releasing the changes listed above as I'm typing this. |
Problem Statement
TL;DR: We send wrong data in the
handled
field, we conflate unhandled errors and crashes, and even if we fixed the former we'd still need to find effective ways to differentiate the latter from one another.Stolen from my comment on getsentry/rfcs#10:
Other relevant bits of that thread:
getsentry/rfcs#10 (comment)
getsentry/rfcs#10 (comment)
Solution Brainstorm
There are a few separate but intertwined threads of what has to happen to really fix this:
We need the sentry server and UI to be able to handle three options rather than two.
We need to correct our blatantly incorrect booleans
We need to find effective ways to differentiate between unhandled errors which don't really block users and ones which actually break stuff (the closest we're going to get to actual "crashes" in browser-land, at least until a real minidump-like API is introduced for browser tabs - for obvious reasons this doesn't count).
Note: As per getsentry/sentry-dart#1116 (comment), we should coordinate with the mobile folks when we actually start working on this. EDIT: Turns out they can already do the data gathering for the dart SDK. Might nice to try sending correct data from RN, though.
The text was updated successfully, but these errors were encountered: