Releases: getsentry/sentry-javascript
9.10.0
Important Changes
-
feat: Add support for logs
- feat(node): Add logging public APIs to Node SDKs (#15764)
- feat(core): Add support for
beforeSendLog(#15814) - feat(core): Add support for parameterizing logs (#15812)
- fix: Remove critical log severity level (#15824)
All JavaScript SDKs other than
@sentry/cloudflareand@sentry/denonow support sending logs via dedicated methods as part of Sentry's upcoming logging product.Logging is gated by an experimental option,
_experiments.enableLogs.Sentry.init({ dsn: 'PUBLIC_DSN', // `enableLogs` must be set to true to use the logging features _experiments: { enableLogs: true }, }); const { trace, debug, info, warn, error, fatal, fmt } = Sentry.logger; trace('Starting database connection', { database: 'users' }); debug('Cache miss for user', { userId: 123 }); error('Failed to process payment', { orderId: 'order_123', amount: 99.99 }); fatal('Database connection pool exhausted', { database: 'users', activeConnections: 100 }); // Structured logging via the `fmt` helper function. When you use `fmt`, the string template and parameters are sent separately so they can be queried independently in Sentry. info(fmt(`Updated profile for user ${userId}`)); warn(fmt(`Rate limit approaching for endpoint ${endpoint}. Requests: ${requests}, Limit: ${limit}`));
With server-side SDKs like
@sentry/node,@sentry/bunor server-side of@sentry/nextjsor@sentry/sveltekit, you can do structured logging without needing thefmthelper function.const { info, warn } = Sentry.logger; info('User %s logged in successfully', [123]); warn('Failed to load user %s data', [123], { errorCode: 404 });
To filter logs, or update them before they are sent to Sentry, you can use the
_experiments.beforeSendLogoption. -
feat(browser): Add
diagnoseSdkConnectivity()function to programmatically detect possible connectivity issues (#15821)The
diagnoseSdkConnectivity()function can be used to programmatically detect possible connectivity issues with the Sentry SDK.const result = await Sentry.diagnoseSdkConnectivity();
The result will be an object with the following properties:
"no-client-active": There was no active client when the function was called. This possibly means that the SDK was not initialized yet."sentry-unreachable": The Sentry SaaS servers were not reachable. This likely means that there is an ad blocker active on the page or that there are other connection issues.undefined: The SDK is working as expected.
-
SDK Tracing Performance Improvements for Node SDKs
- feat: Stop using
dropUndefinedKeys(#15796) - feat(node): Only add span listeners for instrumentation when used (#15802)
- ref: Avoid
dropUndefinedKeysforspanToJSONcalls (#15792) - ref: Avoid using
SentryErrorfor PromiseBuffer control flow (#15822) - ref: Stop using
dropUndefinedKeysin SpanExporter (#15794) - ref(core): Avoid using
SentryErrorfor event processing control flow (#15823) - ref(node): Avoid
dropUndefinedKeysin Node SDK init (#15797) - ref(opentelemetry): Avoid sampling work for non-root spans (#15820)
We've been hard at work making performance improvements to the Sentry Node SDKs (
@sentry/node,@sentry/aws-serverless,@sentry/nestjs, etc.). We've seen that upgrading from9.7.0to9.10.0leads to 30-40% improvement in request latency for HTTP web-server applications that use tracing with high sample rates. Non web-server applications and non-tracing applications will see smaller improvements. - feat: Stop using
Other Changes
- chore(deps): Bump
rrwebto2.35.0(#15825) - deps: Bump bundler plugins to
3.2.3(#15829) - feat: Always truncate stored breadcrumb messages to 2kb (#15819)
- feat(nextjs): Disable server webpack-handling for static builds (#15751)
- fix(nuxt): Don't override Nuxt options if undefined (#15795)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.08 KB |
| @sentry/browser - with treeshaking flags | 22.88 KB |
| @sentry/browser (incl. Tracing) | 36.49 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.65 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.3 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.87 KB |
| @sentry/browser (incl. Feedback) | 40.21 KB |
| @sentry/browser (incl. sendFeedback) | 27.71 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.5 KB |
| @sentry/react | 24.86 KB |
| @sentry/react (incl. Tracing) | 38.39 KB |
| @sentry/vue | 27.3 KB |
| @sentry/vue (incl. Tracing) | 38.18 KB |
| @sentry/svelte | 23.12 KB |
| CDN Bundle | 24.33 KB |
| CDN Bundle (incl. Tracing) | 36.51 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.71 KB |
| CDN Bundle - uncompressed | 70.93 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 108.11 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 219.4 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.97 KB |
| @sentry/nextjs (client) | 39.68 KB |
| @sentry/sveltekit (client) | 36.92 KB |
| @sentry/node | 142.91 KB |
| @sentry/node - without tracing | 96.12 KB |
| @sentry/aws-serverless | 120.46 KB |
9.9.0
Important Changes
-
feat(nextjs): Support
instrumentation-client.ts(#15705)Next.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. -
feat(browser): Add
previous_tracespan links (#15569)The
@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', }), ], });
-
feat(browser): Add
logger.Xmethods 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
parseStringToURLmethod (#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 |
9.8.0
- feat(node): Implement new continuous profiling API spec (#15635)
- feat(profiling): Add platform to chunk envelope (#15758)
- feat(react): Export captureReactException method (#15746)
- fix(node): Check for
res.endbefore passing to Proxy (#15776) - perf(core): Add short-circuits to
eventFiltersintegration (#15752) - perf(node): Short circuit flushing on Vercel only for Vercel (#15734)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.29 KB |
| @sentry/browser - with treeshaking flags | 23.11 KB |
| @sentry/browser (incl. Tracing) | 36.34 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.51 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.94 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.15 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.71 KB |
| @sentry/browser (incl. Feedback) | 40.43 KB |
| @sentry/browser (incl. sendFeedback) | 27.94 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.73 KB |
| @sentry/react | 25.1 KB |
| @sentry/react (incl. Tracing) | 38.26 KB |
| @sentry/vue | 27.53 KB |
| @sentry/vue (incl. Tracing) | 38.04 KB |
| @sentry/svelte | 23.33 KB |
| CDN Bundle | 24.52 KB |
| CDN Bundle (incl. Tracing) | 36.38 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.41 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.61 KB |
| CDN Bundle - uncompressed | 71.68 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 108.06 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 219.32 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.88 KB |
| @sentry/nextjs (client) | 39.56 KB |
| @sentry/sveltekit (client) | 36.76 KB |
| @sentry/node | 142.65 KB |
| @sentry/node - without tracing | 96.04 KB |
| @sentry/aws-serverless | 120.41 KB |
9.7.0
- feat(core): Add
captureLogmethod (#15717) - feat(remix/cloudflare): Export
sentryHandleError(#15726) - fix(node): Always flush on Vercel before Lambda freeze (#15602)
- fix(node): Ensure incoming traces are propagated without HttpInstrumentation (#15732)
- fix(node): Use
fatallevel for unhandled rejections instrictmode (#15720) - fix(nuxt): Delete Nuxt server template injection (#15749)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.28 KB |
| @sentry/browser - with treeshaking flags | 23.09 KB |
| @sentry/browser (incl. Tracing) | 36.33 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.5 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.93 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.13 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.69 KB |
| @sentry/browser (incl. Feedback) | 40.42 KB |
| @sentry/browser (incl. sendFeedback) | 27.91 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.7 KB |
| @sentry/react | 25.08 KB |
| @sentry/react (incl. Tracing) | 38.23 KB |
| @sentry/vue | 27.52 KB |
| @sentry/vue (incl. Tracing) | 38.02 KB |
| @sentry/svelte | 23.3 KB |
| CDN Bundle | 24.49 KB |
| CDN Bundle (incl. Tracing) | 36.37 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.39 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.57 KB |
| CDN Bundle - uncompressed | 71.56 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 107.94 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 219.2 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.77 KB |
| @sentry/nextjs (client) | 39.52 KB |
| @sentry/sveltekit (client) | 36.73 KB |
| @sentry/node | 142.62 KB |
| @sentry/node - without tracing | 96.01 KB |
| @sentry/aws-serverless | 120.37 KB |
9.7.0-alpha.0
This is an alpha release that includes experimental features which are subject to breaking changes.
- fix(node): Ensure httpIntegration propagates traces #15735
- feat(browser): Attach top-level domain to "Failed to fetch" errors #15729
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.26 KB |
| @sentry/browser - with treeshaking flags | 23.07 KB |
| @sentry/browser (incl. Tracing) | 36.32 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.5 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.92 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.13 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.68 KB |
| @sentry/browser (incl. Feedback) | 40.4 KB |
| @sentry/browser (incl. sendFeedback) | 27.9 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.68 KB |
| @sentry/react | 25.07 KB |
| @sentry/react (incl. Tracing) | 38.21 KB |
| @sentry/vue | 27.51 KB |
| @sentry/vue (incl. Tracing) | 38.01 KB |
| @sentry/svelte | 23.29 KB |
| CDN Bundle | 24.48 KB |
| CDN Bundle (incl. Tracing) | 36.36 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.38 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.56 KB |
| CDN Bundle - uncompressed | 71.45 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 107.83 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 219.09 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.66 KB |
| @sentry/nextjs (client) | 39.48 KB |
| @sentry/sveltekit (client) | 36.72 KB |
| @sentry/node | 142.8 KB |
| @sentry/node - without tracing | 96.15 KB |
| @sentry/aws-serverless | 120.54 KB |
9.6.1
- feat(deps): bump @prisma/instrumentation from 6.4.1 to 6.5.0 (#15714)
- feat(deps): bump @sentry/cli from 2.42.2 to 2.42.3 (#15711)
- fix(nextjs): Re-patch router if it is overridden by Next.js (#15721)
- fix(nuxt): Add Nitro Rollup plugin to inject Sentry server config (#15710)
- chore(deps): Bump rollup to 4.35.0 (#15651)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.15 KB |
| @sentry/browser - with treeshaking flags | 22.94 KB |
| @sentry/browser (incl. Tracing) | 36.21 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.39 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.81 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.01 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.57 KB |
| @sentry/browser (incl. Feedback) | 40.3 KB |
| @sentry/browser (incl. sendFeedback) | 27.79 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.58 KB |
| @sentry/react | 24.97 KB |
| @sentry/react (incl. Tracing) | 38.1 KB |
| @sentry/vue | 27.4 KB |
| @sentry/vue (incl. Tracing) | 37.9 KB |
| @sentry/svelte | 23.18 KB |
| CDN Bundle | 24.36 KB |
| CDN Bundle (incl. Tracing) | 36.26 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.27 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.45 KB |
| CDN Bundle - uncompressed | 71.19 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 107.57 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.83 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.39 KB |
| @sentry/nextjs (client) | 39.38 KB |
| @sentry/sveltekit (client) | 36.63 KB |
| @sentry/node | 142.29 KB |
| @sentry/node - without tracing | 95.71 KB |
| @sentry/aws-serverless | 120.06 KB |
9.6.0
Important Changes
-
feat(tanstackstart): Add
@sentry/tanstackstart-reactpackage and make@sentry/tanstackstartpackage a utility package (#15629)Since TanStack Start is supposed to be a generic framework that supports libraries like React and Solid, the
@sentry/tanstackstartSDK package was renamed to@sentry/tanstackstart-reactto reflect that the SDK is specifically intended to be used for React TanStack Start applications.
Note that the TanStack Start SDK is still in alpha status and may be subject to breaking changes in non-major package updates.
Other Changes
- feat(astro): Accept all vite-plugin options (#15638)
- feat(deps): bump @sentry/webpack-plugin from 3.2.1 to 3.2.2 (#15627)
- feat(tanstackstart): Refine initial API (#15574)
- fix(core): Ensure
fillonly patches functions (#15632) - fix(nextjs): Consider
pageExtensionswhen looking for instrumentation file (#15701) - fix(remix): Null-check
options(#15610) - fix(sveltekit): Correctly parse angle bracket type assertions for auto instrumentation (#15578)
- fix(sveltekit): Guard process variable (#15605)
Work in this release was contributed by @angelikatyborska and @nwalters512. Thank you for your contributions!
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.15 KB |
| @sentry/browser - with treeshaking flags | 22.94 KB |
| @sentry/browser (incl. Tracing) | 36.21 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.39 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.8 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.01 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.57 KB |
| @sentry/browser (incl. Feedback) | 40.3 KB |
| @sentry/browser (incl. sendFeedback) | 27.79 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.58 KB |
| @sentry/react | 24.97 KB |
| @sentry/react (incl. Tracing) | 38.1 KB |
| @sentry/vue | 27.4 KB |
| @sentry/vue (incl. Tracing) | 37.9 KB |
| @sentry/svelte | 23.18 KB |
| CDN Bundle | 24.36 KB |
| CDN Bundle (incl. Tracing) | 36.26 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.27 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.45 KB |
| CDN Bundle - uncompressed | 71.19 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 107.57 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.84 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.4 KB |
| @sentry/nextjs (client) | 39.27 KB |
| @sentry/sveltekit (client) | 36.63 KB |
| @sentry/node | 142.15 KB |
| @sentry/node - without tracing | 95.58 KB |
| @sentry/aws-serverless | 119.92 KB |
9.6.0-alpha.0
This is an alpha release that includes experimental functionality for the new logs API in Sentry. All experimental features are subject to breaking changes.
- feat(logs): Add experimental user-callable logging methods (#15442)
Logging is gated by an experimental option, _experiments.enableLogs.
Sentry.init({
_experiments: {
// Enable logs to be sent to Sentry.
enableLogs: true,
},
});These API are exposed in the Sentry._experiment_log namespace. In the future the _experiment_log namespace will be removed and logging functions will be moved into a more stable namespace.
There are functions for each of the logging severity levels fatal, error, warn, info, debug, trace. There is also a log function that is an alias to info.
Sentry._experiment_log.info('Adding item to cart', { item: 'sneakers' });
Sentry._experiment_log.warn('User performed invalid operation', { userId: '23423874', operation: 'open-file' });If you want to do structured logging, you'll need to use the fmt helper exposed in the Sentry._experiment_log namespace.
const { fmt } = Sentry._experiment_log;
Sentry._experiment_log.info(fmt`user ${username} just bought ${item}!`);SDKs that support the Alpha Logging APIs:
@sentry/astro@sentry/aws-serverless@sentry/browser@sentry/bun@sentry/cloudflare@sentry/core@sentry/deno@sentry/ember@sentry/gatsby@sentry/google-cloud-serverless@sentry/nestjs@sentry/nextjs@sentry/node@sentry/nuxt@sentry/react@sentry/remix@sentry/solid@sentry/solidstart@sentry/svelte@sentry/sveltekit@sentry/vercel-edge@sentry/vue
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.82 KB |
| @sentry/browser - with treeshaking flags | 23.63 KB |
| @sentry/browser (incl. Tracing) | 36.82 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.98 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.42 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.63 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 91.17 KB |
| @sentry/browser (incl. Feedback) | 40.97 KB |
| @sentry/browser (incl. sendFeedback) | 28.46 KB |
| @sentry/browser (incl. FeedbackAsync) | 33.24 KB |
| @sentry/react | 25.61 KB |
| @sentry/react (incl. Tracing) | 38.72 KB |
| @sentry/vue | 28.03 KB |
| @sentry/vue (incl. Tracing) | 38.54 KB |
| @sentry/svelte | 23.85 KB |
| CDN Bundle | 24.36 KB |
| CDN Bundle (incl. Tracing) | 36.25 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.27 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.44 KB |
| CDN Bundle - uncompressed | 71.15 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 107.53 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.8 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.36 KB |
| @sentry/nextjs (client) | 39.87 KB |
| @sentry/sveltekit (client) | 37.24 KB |
| @sentry/node | 142.83 KB |
| @sentry/node - without tracing | 96.26 KB |
| @sentry/aws-serverless | 120.59 KB |
9.5.0
Important Changes
We found some issues with the new feedback screenshot annotation where screenshots are not being generated properly. Due to this issue, we are reverting the feature.
Other Changes
- Add cloudflare adapter detection and path generation (#15603)
- deps(nextjs): Bump rollup to
4.34.9(#15589) - feat(bun): Automatically add performance integrations (#15586)
- feat(replay): Bump rrweb to 2.34.0 (#15580)
- fix(browser): Call original function on early return from patched history API (#15576)
- fix(nestjs): Copy metadata in custom decorators (#15598)
- fix(react-router): Fix config type import (#15583)
- fix(remix): Use correct types export for
@sentry/remix/cloudflare(#15599) - fix(vue): Attach Pinia state only once per event (#15588)
Work in this release was contributed by @msurdi-a8c, @namoscato, and @rileyg98. Thank you for your contributions!
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.14 KB |
| @sentry/browser - with treeshaking flags | 22.93 KB |
| @sentry/browser (incl. Tracing) | 36.2 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.38 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66.79 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.56 KB |
| @sentry/browser (incl. Feedback) | 40.29 KB |
| @sentry/browser (incl. sendFeedback) | 27.78 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.57 KB |
| @sentry/react | 24.96 KB |
| @sentry/react (incl. Tracing) | 38.09 KB |
| @sentry/vue | 27.38 KB |
| @sentry/vue (incl. Tracing) | 37.89 KB |
| @sentry/svelte | 23.17 KB |
| CDN Bundle | 24.35 KB |
| CDN Bundle (incl. Tracing) | 36.25 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.26 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.43 KB |
| CDN Bundle - uncompressed | 71.14 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 107.52 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.79 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.36 KB |
| @sentry/nextjs (client) | 39.26 KB |
| @sentry/sveltekit (client) | 36.62 KB |
| @sentry/node | 142.14 KB |
| @sentry/node - without tracing | 95.57 KB |
| @sentry/aws-serverless | 119.92 KB |
9.5.0-alpha.0
This is an alpha release that includes experimental functionality for the new logs API in Sentry. Support for these methods are only avaliable in the browser and core SDKs.
- feat(logs): Add experimental user-callable logging methods (#15442)
Logging is gated by an experimental option, _experiments.enableLogs.
Sentry.init({
_experiments: {
enableLogs: true,
},
});These API are exposed in the Sentry._experiment_log namespace.
On a high level, there are functions for each of the logging severity levels fatal, error, warn, info, debug, trace. There is also a log function that is an alias to info.
Sentry._experiment_log.info('Adding item to cart', { item: 'sneakers' });If you want to do structured logging, you'll need to use the fmt helper exposed in the Sentry._experiment_log namespace.
const { fmt } = Sentry._experiment_log;
Sentry._experiment_log.info(fmt`user ${username} just bought ${item}!`);Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 23.72 KB |
| @sentry/browser - with treeshaking flags | 23.54 KB |
| @sentry/browser (incl. Tracing) | 36.74 KB |
| @sentry/browser (incl. Tracing, Replay) | 73.93 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.36 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.57 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.47 KB |
| @sentry/browser (incl. Feedback) | 40.25 KB |
| @sentry/browser (incl. sendFeedback) | 28.36 KB |
| @sentry/browser (incl. FeedbackAsync) | 33.13 KB |
| @sentry/react | 25.54 KB |
| @sentry/react (incl. Tracing) | 38.69 KB |
| @sentry/vue | 27.97 KB |
| @sentry/vue (incl. Tracing) | 38.47 KB |
| @sentry/svelte | 23.76 KB |
| CDN Bundle | 24.36 KB |
| CDN Bundle (incl. Tracing) | 36.25 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.27 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 76.42 KB |
| CDN Bundle - uncompressed | 71.15 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 107.53 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 218.8 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 231.33 KB |
| @sentry/nextjs (client) | 39.85 KB |
| @sentry/sveltekit (client) | 37.17 KB |
| @sentry/node | 142.78 KB |
| @sentry/node - without tracing | 96.21 KB |
| @sentry/aws-serverless | 120.53 KB |