9.12.0
Important Changes
-
feat(feedback): Implement highlighting and hiding controls for screenshots (#15951)
The Sentry SDK now supports highlighting and hiding controls for screenshots in user feedback reports. This functionality is enabled by default.
-
feat(node): Add
ignoreIncomingRequestBodycallback tohttpIntegration(#15959)The
httpIntegrationnow supports an optionalignoreIncomingRequestBodycallback that can be used to skip capturing the body of incoming requests.Sentry.init({ integrations: [ Sentry.httpIntegration({ ignoreIncomingRequestBody: (url, request) => { return request.method === 'GET' && url.includes('/api/large-payload'); }, }), ], });
The
ignoreIncomingRequestBodycallback receives the URL of the request and should returntrueif the body should be ignored. -
Logging Improvements
Sentry is adding support for structured logging. In this release we've made a variety of improvements to logging functionality in the Sentry SDKs.
- feat(node): Add server.address to nodejs logs (#16006)
- feat(core): Add sdk name and version to logs (#16005)
- feat(core): Add sentry origin attribute to console logs integration (#15998)
- fix(core): Do not abbreviate message parameter attribute (#15987)
- fix(core): Prefix release and environment correctly (#15999)
- fix(node): Make log flushing logic more robust (#15991)
Other Changes
- build(aws-serverless): Include debug logs in lambda layer SDK bundle (#15974)
- feat(astro): Add tracking of errors during HTML streaming (#15995)
- feat(browser): Add
onRequestSpanStarthook to browser tracing integration (#15979) - feat(deps): Bump @sentry/cli from 2.42.3 to 2.43.0 (#16001)
- feat(nextjs): Add
captureRouterTransitionStarthook for capturing navigations (#15981) - feat(nextjs): Mark clientside prefetch request spans with
http.request.prefetch: trueattribute (#15980) - feat(nextjs): Un experimentify
clientInstrumentationHook(#15992) - feat(nextjs): Warn when client was initialized more than once (#15971)
- feat(node): Add support for
SENTRY_DEBUGenv variable (#15972) - fix(tss-react): Change
authTokentype tostring(#15985)
Work in this release was contributed by @Page- and @Fryuni. Thank you for your contributions!
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.28 KB |
| @sentry/browser - with treeshaking flags | 23.12 KB |
| @sentry/browser (incl. Tracing) | 36.95 KB |
| @sentry/browser (incl. Tracing, Replay) | 74.14 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.51 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.8 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.61 KB |
| @sentry/browser (incl. Feedback) | 39.68 KB |
| @sentry/browser (incl. sendFeedback) | 27.9 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.67 KB |
| @sentry/react | 25.09 KB |
| @sentry/react (incl. Tracing) | 38.87 KB |
| @sentry/vue | 27.51 KB |
| @sentry/vue (incl. Tracing) | 38.67 KB |
| @sentry/svelte | 23.32 KB |
| CDN Bundle | 24.51 KB |
| CDN Bundle (incl. Tracing) | 36.95 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.99 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 77.16 KB |
| CDN Bundle - uncompressed | 71.47 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 109.23 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 220.52 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 233.05 KB |
| @sentry/nextjs (client) | 40.49 KB |
| @sentry/sveltekit (client) | 37.39 KB |
| @sentry/node | 143.03 KB |
| @sentry/node - without tracing | 96.24 KB |
| @sentry/aws-serverless | 120.58 KB |