@sentry/gatsby
11.10.0 · 28 Oct 2026MIT17.5k / weekRepositoryHomepagenpmAtom feed
9.47.2 is the newest release of 9.x.
In short
7 new1 faster1 fixed3 internal
Release note
Important Changes
nextjs: Support
instrumentation-client.tsNext.js recently added a feature to support client-side (browser) instrumentation via the
experimental.clientInstrumentationHookflag and theinstrumentation-client.tsfile.To be forwards compatible, the Sentry Next.js SDK will now pick up
instrumentation-client.tsfiles even on older Next.js versions and add them to your client bundles.
It is suggested that you either rename yoursentry.client.config.tsfile toinstrumentation-client.ts, or if you already happen to have ainstrumentation-client.tsfile move the contents ofsentry.client.config.tstoinstrumentation-client.ts.browser: Add
previous_tracespan linksThe
@sentry/browserSDK and SDKs based on@sentry/browsernow emits a link from the first root span of a newly started trace to the root span of a previously started trace. You can control this feature via an option inbrowserTracingIntegration():Sentry.init({ dsn: 'your-dsn-here' integrations: [ Sentry.browserTracingIntegration({ // Available settings: // - 'in-memory' (default): Stores previous trace information in memory // - 'session-storage': Stores previous trace information in the browser's `sessionStorage` // - 'off': Disable storing and sending previous trace information linkPreviousTrace: 'in-memory', }), ], });browser: Add
logger.Xmethods to browser SDKFor Sentry's upcoming logging product, the SDK now supports sending logs via dedicated
Sentry.init({ dsn: 'your-dsn-here', _experiments: { enableLogs: true, // This is required to use the logging features }, }); Sentry.logger.info('This is a trace message', { userId: 123 }); // See PR for better documentationPlease note that the logs product is still in early access. See the link above for more information.
Other Changes
browser: Attach host as part of error message to "Failed to fetch" errors
core: Add
parseStringToURLmethodcore: Optimize
dropUndefinedKeysnode: Add fastify
shouldHandleErrornuxt: Delete no longer needed Nitro 'close' hook
nestjs: Remove usage of
addNonEnumerableProperty
Bundle size
| Path | Size |
|---|---|
| @sentry/browser | 23.21 KB |
| @sentry/browser - with treeshaking flags | 23.01 KB |
| @sentry/browser (incl. Tracing) | 36.62 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.79 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.12 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.42 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 91 KB |
| @sentry/browser (incl. Feedback) | 40.34 KB |
| @sentry/browser (incl. sendFeedback) | 27.85 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.63 KB |
| @sentry/react | 25 KB |
| @sentry/react (incl. Tracing) | 38.52 KB |
| @sentry/vue | 27.44 KB |
| @sentry/vue (incl. Tracing) | 38.3 KB |
| @sentry/svelte | 23.25 KB |
| CDN Bundle | 24.43 KB |
| CDN Bundle (incl. Tracing) | 36.63 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.62 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.83 KB |
| CDN Bundle - uncompressed | 71.39 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 108.59 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 219.84 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 232.41 KB |
| @sentry/nextjs (client) | 39.81 KB |
| @sentry/sveltekit (client) | 37.03 KB |
| @sentry/node | 142.61 KB |
| @sentry/node - without tracing | 96 KB |
| @sentry/aws-serverless | 120.36 KB |