Important Changes
-
feat(nextjs): Support
instrumentation-client.ts
(#15705)Next.js recently added a feature to support client-side (browser) instrumentation via the
experimental.clientInstrumentationHook
flag and theinstrumentation-client.ts
file.To be forwards compatible, the Sentry Next.js SDK will now pick up
instrumentation-client.ts
files even on older Next.js versions and add them to your client bundles.
It is suggested that you either rename yoursentry.client.config.ts
file toinstrumentation-client.ts
, or if you already happen to have ainstrumentation-client.ts
file move the contents ofsentry.client.config.ts
toinstrumentation-client.ts
. -
feat(browser): Add
previous_trace
span links (#15569)The
@sentry/browser
SDK and SDKs based on@sentry/browser
now 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', }), ], });
-
feat(browser): Add
logger.X
methods to browser SDK (#15763)For 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 documentation
Please note that the logs product is still in early access. See the link above for more information.
Other Changes
- feat(browser): Attach host as part of error message to "Failed to fetch" errors (#15729)
- feat(core): Add
parseStringToURL
method (#15768) - feat(core): Optimize
dropUndefinedKeys
(#15760) - feat(node): Add fastify
shouldHandleError
(#15771) - fix(nuxt): Delete no longer needed Nitro 'close' hook (#15790)
- perf(nestjs): Remove usage of
addNonEnumerableProperty
(#15766) - ref: Avoid some usage of
dropUndefinedKeys()
(#15757) - ref: Remove some usages of
dropUndefinedKeys()
(#15781) - ref(nextjs): Fix Next.js vercel-edge runtime package information (#15789)
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 |