-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Coerce non error objects into errors before sending to sentry #1874
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.
This makes a lot of sense to me, really important!
But should we also check if the exception is a string and put that string instead of 'error to capture is not an error instance'?
And also check if the exception is an object and do JSON.stringify and put that instead of 'error to capture is not an error instance'?
I think it would help us further differentiate errors.
7e49ded
to
d55ae15
Compare
It seems like we're passing non errors to sentry re: https://sentry.io/organizations/metamask/issues/1641747298/?project=2299799&query=is%3Aunresolved&statsPeriod=14d I realise we should fix this underlying issue, but adding this will allow us to make mistakes without upsetting the Sentry gods At least, that's my hope 🙏
d55ae15
to
3ef6780
Compare
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! 👍
* Coerce non error objects into errors It seems like we're passing non errors to sentry re: https://sentry.io/organizations/metamask/issues/1641747298/?project=2299799&query=is%3Aunresolved&statsPeriod=14d I realise we should fix this underlying issue, but adding this will allow us to make mistakes without upsetting the Sentry gods At least, that's my hope 🙏
It seems like we're passing non errors to sentry
re: https://sentry.io/organizations/metamask/issues/1641747298/?project=2299799&query=is%3Aunresolved&statsPeriod=14d
I realise we should fix this underlying issue, but adding this will allow us to make mistakes without upsetting the Sentry gods
At least, that's my hope 🙏
Checklist
Issue
Resolves #???