-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: send EDR panics to sentry #6250
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -218,7 +225,8 @@ export class HttpProvider extends BaseProvider { | |||
throw new LimitExceededError(undefined, e); | |||
} | |||
|
|||
throw e; | |||
// eslint-disable-next-line no-restricted-syntax -- allow throwing ProviderError | |||
throw new UnknownError(e.message, e); |
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 may report every HTTP-related error. We can start with reporting them, but we may need to filter most out later. LGTM though
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.
My thinking was to err on the side of reporting too much rather than too little.
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.
agreed
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, but can you rename the PR before merging? I think it got an incorrect name by mistake
Closes #6218
In this PR, I propose to:
UnknownError
which extendsProviderError
UnknownError
UnknownError
s to be reported to sentryExample report: https://nomic-labs.sentry.io/issues/6286399601/?project=4507685793103872&referrer=project-issue-stream
The alternative we discussed earlier is to search for
panic
string within the error message and allow for such errors to be reported.