-
-
Notifications
You must be signed in to change notification settings - Fork 262
feat: captureException with claims messenger #7553
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
Conversation
b693672 to
54b22a1
Compare
54b22a1 to
e69ede4
Compare
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
7bc2d97 to
411a9d7
Compare
hieu-w
left a comment
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
|
@metamaskbot publish-preview |
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
Explanation
This PR uses
captureExceptionfunction from the base-messenger to capture the claims errors and report to sentry (from the extension).References
Checklist
Note
Add Sentry-backed error reporting and robust HTTP error handling to claims service
fetchClaimsConfigurations,getClaims,getClaimById, andgenerateMessageForClaimSignaturein try/catch; on failures callmessenger.captureException(createSentryError(...))and rethrow user-facing errors.utils.getErrorFromResponseto normalize non-OK HTTP responses (JSON/text/unknown) andcreateSentryErrorto attach original causes; add comprehensive unit tests for both utilities.captureExceptionvia mocked messenger, assert it’s called on failures, and verify error messages (including status codes); add specific tests for rejected fetch and 500 responses.captureException; update CHANGELOG with new behavior.Written by Cursor Bugbot for commit cd6eae6. This will update automatically on new commits. Configure here.