-
Couldn't load subscription status.
- Fork 10
Feat/sentry error boundary #1650
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
We also need to add the boundary to the actions deeplinks
|
There is also a new zod plugin for sentry getsentry/sentry-javascript#11144, this should allow for better grouping for validation related errors And this integration that should add more error data from third-party errors https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/extraerrordata/ |
we already have |
| scope.setExtras(extras) | ||
| } | ||
|
|
||
| scope.setLevel(severityLevel ?? 'warning') |
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.
Default should be error here, same as not setting it at all
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.
thanks. adjusted it
|
|
||
| return scope | ||
| }} | ||
| fallback={fallback ?? ErrorFallbackComponent} |
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.
The idea is to not have a fallback, this would create weird UI in some cases and is explicitly not the idea of that TDD, we don't want to change behavior or how we treat errors, all we want to do here is add metadata to the generic ones that are gonna be captured automatically
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.
cool, you're right. removed it
| import { NextImage } from '@/components/ui/image' | ||
| import { PageTitle } from '@/components/ui/pageTitleText' | ||
|
|
||
| export function ErrorFallbackComponent() { |
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.
See comment bellow, but we shouldn't have this here
closes https://github.com/Stand-With-Crypto/swc-internal/issues/302
fixes
What changed? Why?
PlanetScale deploy request
Notes to reviewers
How has it been tested?