sentry-javascript
sentry-javascript copied to clipboard
feat(remix): Add `wrapHandleErrorWithSentry`
Closes: #10212
- Exports a new wrapper
Sentry.wrapHandleErrorWithSentryfor customhandleErrorimplementations. - This runs the original
handleErrorimplementation, then runs the Sentry's capture logic. - This PR also renames
wrapRemixHandleErrortosentryHandleError, to avoid confusion. We're still exportingwrapRemixHandleErroras alias.
size-limit report 📦
| Path | Size |
|---|---|
| @sentry/browser | 21.64 KB (0%) |
| @sentry/browser (incl. Tracing) | 32.68 KB (0%) |
| @sentry/browser (incl. Tracing, Replay) | 68.03 KB (0%) |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.43 KB (0%) |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 72.07 KB (0%) |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 84.28 KB (0%) |
| @sentry/browser (incl. Feedback) | 37.78 KB (0%) |
| @sentry/browser (incl. sendFeedback) | 26.43 KB (0%) |
| @sentry/browser (incl. FeedbackAsync) | 30.93 KB (0%) |
| @sentry/react | 24.33 KB (0%) |
| @sentry/react (incl. Tracing) | 35.64 KB (0%) |
| @sentry/vue | 25.47 KB (0%) |
| @sentry/vue (incl. Tracing) | 34.47 KB (0%) |
| @sentry/svelte | 21.77 KB (0%) |
| CDN Bundle | 23.95 KB (0%) |
| CDN Bundle (incl. Tracing) | 33.98 KB (0%) |
| CDN Bundle (incl. Tracing, Replay) | 67.67 KB (0%) |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.55 KB (0%) |
| CDN Bundle - uncompressed | 70.58 KB (0%) |
| CDN Bundle (incl. Tracing) - uncompressed | 100.94 KB (0%) |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 210.55 KB (0%) |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 256.94 KB (0%) |
| @sentry/nextjs (client) | 34.86 KB (0%) |
| @sentry/sveltekit (client) | 33.24 KB (0%) |
| @sentry/node | 138.47 KB (0%) |
Bundle Report
Changes will decrease total bundle size by 3.42MB :arrow_down:
| Bundle name | Size | Change |
|---|---|---|
| @sentry/remix-cjs | 54.41kB | 789 bytes :arrow_up: |
| @sentry/remix-esm | 48.86kB | 627 bytes :arrow_up: |
| @sentry-internal/integration-shims-cjs | (removed) | 3.65kB :arrow_down: |
| @sentry/types-cjs | (removed) | 35 bytes :arrow_down: |
| @sentry/core-esm | (removed) | 236.82kB :arrow_down: |
| @sentry/utils-cjs | (removed) | 178.75kB :arrow_down: |
| @sentry/node-esm | (removed) | 333.56kB :arrow_down: |
| @sentry/types-esm | (removed) | 35 bytes :arrow_down: |
| @sentry-internal/replay-esm | (removed) | 306.46kB :arrow_down: |
| @sentry-internal/tracing-esm | (removed) | 107.26kB :arrow_down: |
| @sentry-internal/replay-canvas-cjs | (removed) | 29.51kB :arrow_down: |
| @sentry/vercel-edge-cjs | (removed) | 18.23kB :arrow_down: |
| @sentry/utils-esm | (removed) | 174.17kB :arrow_down: |
| @sentry/google-cloud-serverless-esm | (removed) | 19.16kB :arrow_down: |
| @sentry-internal/replay-cjs | (removed) | 306.35kB :arrow_down: |
| @sentry/core-cjs | (removed) | 240.44kB :arrow_down: |
| @sentry/node-cjs | (removed) | 336.97kB :arrow_down: |
| @sentry/aws-serverless-cjs | (removed) | 14.62kB :arrow_down: |
| @sentry-internal/integration-shims-esm | (removed) | 2.99kB :arrow_down: |
| @sentry/svelte-cjs | (removed) | 13.84kB :arrow_down: |
| @sentry/astro-cjs | (removed) | 27.13kB :arrow_down: |
| @sentry/vue-cjs | (removed) | 20.19kB :arrow_down: |
| @sentry/wasm-esm | (removed) | 4.85kB :arrow_down: |
| @sentry-internal/replay-canvas-esm | (removed) | 29.43kB :arrow_down: |
| @sentry-internal/node-integration-tests-cjs | (removed) | 1.04kB :arrow_down: |
| @sentry/svelte-esm | (removed) | 12.72kB :arrow_down: |
| @sentry-internal/node-integration-tests-esm | (removed) | 888 bytes :arrow_down: |
| @sentry-internal/feedback-cjs | (removed) | 65.81kB :arrow_down: |
| @sentry/browser-cjs | (removed) | 107.36kB :arrow_down: |
| @sentry/vercel-edge-esm | (removed) | 16.13kB :arrow_down: |
| @sentry/bun-cjs | (removed) | 13.5kB :arrow_down: |
| @sentry/opentelemetry-cjs | (removed) | 68.45kB :arrow_down: |
| @sentry/sveltekit-esm | (removed) | 61.08kB :arrow_down: |
| @sentry/react-esm | (removed) | 41.18kB :arrow_down: |
| @sentry/nextjs-cjs | (removed) | 20.52kB :arrow_down: |
| @sentry/nextjs-esm | (removed) | 20.02kB :arrow_down: |
| @sentry/bun-esm | (removed) | 10.05kB :arrow_down: |
| @sentry-internal/tracing-cjs | (removed) | 108.01kB :arrow_down: |
| @sentry-internal/feedback-esm | (removed) | 65.5kB :arrow_down: |
| @sentry/opentelemetry-esm | (removed) | 67.4kB :arrow_down: |
| @sentry/profiling-node-cjs | (removed) | 25.5kB :arrow_down: |
| @sentry/browser-esm | (removed) | 104.53kB :arrow_down: |
| @sentry/astro-esm | (removed) | 23.39kB :arrow_down: |
| @sentry/vue-esm | (removed) | 18.85kB :arrow_down: |
| @sentry/profiling-node-esm | (removed) | 25.52kB :arrow_down: |
| @sentry/google-cloud-serverless-cjs | (removed) | 23.0kB :arrow_down: |
| @sentry/wasm-cjs | (removed) | 5.2kB :arrow_down: |
| @sentry/react-cjs | (removed) | 45.04kB :arrow_down: |
| @sentry/sveltekit-cjs | (removed) | 69.31kB :arrow_down: |
| @sentry/gatsby-cjs | (removed) | 905 bytes :arrow_down: |
| @sentry/gatsby-esm | (removed) | 385 bytes :arrow_down: |