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 the instrumentation-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 your sentry.client.config.ts file to instrumentation-client.ts, or if you already happen to have a instrumentation-client.ts file move the contents of sentry.client.config.ts to instrumentation-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 in browserTracingIntegration():
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.
parseStringToURL method (#15768)dropUndefinedKeys (#15760)shouldHandleError (#15771)addNonEnumerableProperty (#15766)dropUndefinedKeys() (#15757)dropUndefinedKeys() (#15781)| 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 |
Fetched March 31, 2026