sentry-javascript
sentry-javascript copied to clipboard
feat(nextjs): Extract tracing logic from server component wrapper templates
closes https://linear.app/getsentry/issue/JS-1207/remove-tracing-from-app-router-server-components-templates closes https://github.com/getsentry/sentry-javascript/issues/18307
node-overhead report 🧳
Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
| Scenario | Requests/s | % of Baseline | Prev. Requests/s | Change % |
|---|---|---|---|---|
| GET Baseline | 9,137 | - | 8,535 | +7% |
| GET With Sentry | 1,790 | 20% | 1,608 | +11% |
| GET With Sentry (error only) | 6,215 | 68% | 5,850 | +6% |
| POST Baseline | 1,198 | - | 1,166 | +3% |
| POST With Sentry | 600 | 50% | 546 | +10% |
| POST With Sentry (error only) | 1,066 | 89% | 1,023 | +4% |
| MYSQL Baseline | 3,269 | - | 3,188 | +3% |
| MYSQL With Sentry | 488 | 15% | 427 | +14% |
| MYSQL With Sentry (error only) | 2,673 | 82% | 2,607 | +3% |
size-limit report 📦
| Path | Size | % Change | Change |
|---|---|---|---|
| @sentry/browser | 24.81 kB | - | - |
| @sentry/browser - with treeshaking flags | 23.3 kB | - | - |
| @sentry/browser (incl. Tracing) | 41.55 kB | - | - |
| @sentry/browser (incl. Tracing, Profiling) | 46.16 kB | - | - |
| @sentry/browser (incl. Tracing, Replay) | 79.97 kB | - | - |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.7 kB | - | - |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 84.65 kB | - | - |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 96.89 kB | - | - |
| @sentry/browser (incl. Feedback) | 41.52 kB | - | - |
| @sentry/browser (incl. sendFeedback) | 29.49 kB | - | - |
| @sentry/browser (incl. FeedbackAsync) | 34.48 kB | - | - |
| @sentry/react | 26.52 kB | - | - |
| @sentry/react (incl. Tracing) | 43.76 kB | - | - |
| @sentry/vue | 29.27 kB | - | - |
| @sentry/vue (incl. Tracing) | 43.36 kB | - | - |
| @sentry/svelte | 24.82 kB | - | - |
| CDN Bundle | 27.23 kB | - | - |
| CDN Bundle (incl. Tracing) | 42.22 kB | - | - |
| CDN Bundle (incl. Tracing, Replay) | 78.75 kB | - | - |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 84.2 kB | - | - |
| CDN Bundle - uncompressed | 80.02 kB | - | - |
| CDN Bundle (incl. Tracing) - uncompressed | 125.37 kB | - | - |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 241.41 kB | - | - |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 254.17 kB | - | - |
| @sentry/nextjs (client) | 45.98 kB | - | - |
| @sentry/sveltekit (client) | 41.93 kB | - | - |
| @sentry/node-core | 51.6 kB | -0.01% | -1 B 🔽 |
| @sentry/node | 161.48 kB | -0.01% | -1 B 🔽 |
| @sentry/node - without tracing | 93.03 kB | - | - |
| @sentry/aws-serverless | 108.54 kB | - | - |