-
-
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
feat(nextjs): Improve client stack traces #7097
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.
would be great to get a test!
Trust me it works |
size-limit report 📦
|
@AntonBurduzha fyi |
Replay SDK metrics 🚀
develop |
Revision | LCP | CLS | CPU | JS heap avg | JS heap max | netTx | netRx | netCount | netTime |
---|---|---|---|---|---|---|---|---|---|
5c937aa | +55.49 ms | +0.00 ms | +14.47 pp | +1.08 MB | +2.22 MB | +2.61 kB | +41 B | +1 | +68.14 ms |
45638e4 | +71.80 ms | +0.00 ms | +21.94 pp | +1.1 MB | +2.26 MB | +2.61 kB | +41 B | +1 | +98.15 ms |
b539b36 | +53.97 ms | -0.00 ms | +16.53 pp | +1.12 MB | +2.23 MB | +2.61 kB | +41 B | +1 | +114.29 ms |
6462b00 | +62.18 ms | +0.00 ms | +23.70 pp | +1.1 MB | +2.23 MB | +2.57 kB | +41 B | +1 | +117.17 ms |
Last updated: Thu, 09 Feb 2023 09:39:01 GMT
@AbhiPrasad I caved and added tests and only potentially discovered an edge case lol |
|
if ( | ||
frame.filename && | ||
frame.filename.match( | ||
/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/, |
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.
will this have any possible issues with windows paths?
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.
It's just on the client so we're good
Reading this blog post we should probably do what they're doing out of the box: https://hackernoon.com/how-to-upload-source-maps-to-sentry-with-nextjs
Also marks Next.js internal frames with
in_app: false
because users shouldn't care about those.