Version 11.0.0 of the Sentry JavaScript SDK is now available. The goal of this release is to be better compatible with OpenTelemetry, make our integrations work across Node.js, Cloudflare, Bun and Deno through run-time and build-time instrumentation, and make span streaming and more permissive data collection the default.
This is a major release with breaking changes. Read the migration guide before you upgrade.
New Features
- Better OpenTelemetry compatibility: Sentry no longer takes over your OpenTelemetry setup. You can keep your own OpenTelemetry configuration next to Sentry.
- Run-time and build-time instrumentation: The SDK can instrument your code at run time or at build time. Build-time instrumentation gives better tracing on platforms like Vercel and Netlify.
- Integrations for Cloudflare, Bun and Deno: Our integrations now also work on Cloudflare Workers, Bun and Deno.
- Span streaming by default: Spans are sent as they finish, so large traces are no longer cut off by size or span limits. Span names have low cardinality across all SDKs.
- Granular data collection: The new
dataCollectionoption replacessendDefaultPii. It gives you control per data type and has more permissive defaults. - Logs without a second opt-in: The
enableLogsoption was removed. Logs are sent when you useSentry.loggeror a logging integration. - New integrations: Mastra, Mistral AI, Groq, Together AI, eve and Flue, plus web vitals for soft navigations and back/forward cache restores.
How to Upgrade
The Sentry Wizard 8.0.0 installs v11 of the SDK for Angular, Cloudflare, Next.js, Nuxt, React Router, Remix and SvelteKit. For all other SDKs, follow the setup guide in the Sentry docs.
- v10 to v11 migration guide in the Sentry docs (select your platform or framework)
- Full migration guide in the SDK repository
- Release notes
