-
Notifications
You must be signed in to change notification settings - Fork 0
Make Sentry report errors on Vercel 🤞🏻 #1494
Conversation
Adds an edge config to initialize Sentry on Vercel (I think). https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#create-initialization-config-files This config file became available in Sentry version 7.31.0 https://github.com/getsentry/sentry-javascript/blob/2738b5ff3fca3816c506eb1736a4c0a055c0fcf7/CHANGELOG.md?plain=1#L288
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📦 Next.js Bundle AnalysisThis analysis was generated by the next.js bundle analysis action 🤖
|
Page | Size (compressed) |
---|---|
global |
357.01 KB (🟡 +3.49 KB) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
New Page Added
The following page was added to the bundle from the code in this PR:
Page | Size (compressed) | First Load |
---|---|---|
/myPage |
290 B |
357.29 KB |
Ten Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/404 |
8.11 KB (🟡 +3 B) |
365.12 KB |
/Parts |
50.03 KB (🟡 +2 B) |
407.03 KB |
/Parts/[...deviceHandleItemType] |
50.05 KB (🟡 +2 B) |
407.05 KB |
/Shop/[handle] |
50.03 KB (🟡 +2 B) |
407.04 KB |
/Tools |
50.03 KB (🟡 +2 B) |
407.03 KB |
/Tools/[handle] |
50.03 KB (🟡 +2 B) |
407.04 KB |
/Vulcan/[wikiname] |
11.68 KB (🟡 +3 B) |
368.68 KB |
/_error |
468 B (🟢 -195 B) |
357.46 KB |
/products/[handle] |
82.92 KB (🟡 +4 B) |
439.92 KB |
/store |
42.41 KB (🟡 +3 B) |
399.41 KB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link
is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
womp womp https://react-commerce-git-sentry-not-reporting-on-vercel-ifixit.vercel.app/Parts/MacBook_Pro/Display_Components?p=-1%20OR%203%2B947-947-1%3D0%2B0%2B0%2B1 didn't product an error in react-commerce-dev on sentry |
6af8f15
to
a8df098
Compare
Same setup as getsentry/sentry-javascript#6117 style: apply prettier formatting diff
a8df098
to
041b3b6
Compare
So /myPage?myParam=two (the repro from getsentry/sentry-javascript#6117) gets reported to Sentry, so that means general errors thrown in
However, the original error url still doesn't get reported to Sentry. Here are it's error logs in Vercel:
|
CC @danielbeardsley
Closes #1491