Important Changes
-
feat: Add a managed tunnel that the SDK derives from the DSN (#25199, #25200, #25783)
Set
tunnel: truein your browserSentry.initcall to send events through your own server. This helps when ad blockers block requests to Sentry. The browser derives the tunnel path from the DSN, so older and newer builds of your client and server always agree on the path.To serve the tunnel, add
serveTunnelIntegration()to your server SDK. Astro, Nuxt, Nitro, React Router, Remix 3, SolidStart, SvelteKit and TanStack Start then answer tunnel requests automatically:// browser Sentry.init({ dsn, tunnel: true }); // server Sentry.init({ dsn, integrations: [Sentry.serveTunnelIntegration()] });
If the browser uses a different DSN than the server, set
serveTunnelIntegration({ allowedDsns: [browserDsn] }). For other setups, the server SDKs exporthandleTunnelRequestIfMatched,handleTunnelRequest,isTunnelRequestandgetTunnelPath:app.use((req, res, next) => Sentry.handleTunnelRequestIfMatched(req, res) ?? next());
The
requestoption ofhandleTunnelRequestis deprecated and will be removed in v12. -
feat: Make span origins spec compliant (#25602)
Some span origins changed their names to follow the trace origin spec:
auto.amqplib.*is nowauto.queue.amqplib.*, andauto.kafkajs.*is nowauto.queue.kafkajs.*.auto.vercelai.channelis nowauto.ai.vercelai.auto.firebase.firestoreis nowauto.db.firebase.firestore, andauto.firebase.functionsis nowauto.function.firebase.auto.aws.aws_sdkis nowauto.{rpc,db,queue,ai}.aws_sdk, with the category from the span op.auto.aws_lambdais nowauto.function.aws_serverless.auto.mcp.notificationis nowauto.function.mcp_server.notification.auto.db.cloudflare.durable_object.sqlis nowauto.db.cloudflare.durable_object_sql.auto.http.browser.{lcp,cls,inp}is nowauto.ui.browser.{lcp,cls,inp}.
If you have
ignoreSpansrules, queries or alerts on the old origins, change them to use the new origins. -
feat(bun): Add incoming request options and request sessions to
bunServerIntegration(#25580)bunServerIntegrationnow accepts the same options asdenoServeIntegration:ignoreRequestBody,ignoreIncomingRequests,ignoreStaticAssets,spans,onSpanCreated,onSpanEnd,sessionsandsessionFlushingDelayMS. The callbacks receive the webRequest.Bun.servenow records a request session for each incoming request. Sessions are sent only when areleaseis set. To turn them off, setbunServerIntegration({ sessions: false }).ignoreStaticAssetsdefaults totrue, soBun.serveno longer creates spans forGETrequests to common static assets such asfavicon.ico,robots.txtor*.jsfiles. To keep these spans, setbunServerIntegration({ ignoreStaticAssets: false }).Bun.servespans also follow the client's tracing configuration by default, so the integration does not start spans when tracing is disabled. Errors thrown forOPTIONSandHEADrequests are now captured. -
feat(bun): Inject debug IDs and upload source maps in
sentryBunPlugin(#25670)sentryBunPluginfrom@sentry/bun/pluginnow accepts the same options assentryEsbuildPlugin(org,project,authToken,release,sourcemaps, ...). WhenBun.buildwrites source maps tooutdir, the plugin injects the debug ID that Bun writes into each bundle, injects the release, and uploads the source maps at the end of the build. You no longer need to runsentry sourcemap injectandsentry sourcemap uploadafter the build.Like the other bundler plugins,
sentryBunPluginnow sends build telemetry and injects the release it detects (for example, from git). To turn off telemetry, settelemetry: false. -
feat(cloudflare): Add incoming request span options to
httpServerIntegration(#25582)Cloudflare's
httpServerIntegrationnow acceptsignoreIncomingRequests,ignoreStaticAssets,spans,onSpanCreatedandonSpanEnd, with the same meaning as in the Node, Deno and Bun integrations. The callbacks receive the webRequest.ignoreStaticAssetsdefaults totrue, so workers no longer create spans forGETrequests to common static assets such asfavicon.ico,robots.txtor*.jsfiles. To keep these spans, sethttpServerIntegration({ ignoreStaticAssets: false }). Request spans also follow the client's tracing configuration by default, so the SDK does not start them when tracing is disabled. IfignoreRequestBodythrows, the request no longer fails, and the SDK skips the body. -
feat(cloudflare): Let users configure the channel integrations (#25584)
When the
@sentry/cloudflare/viteplugin bundles an instrumented package (for examplepgoropenai), the SDK adds the matching integration with its default options.@sentry/cloudflarenow exports these integrations, so you can set their options, for example ininstrument.server.ts:export default Sentry.defineCloudflareOptions(env => ({ dsn: env.SENTRY_DSN, integrations: [Sentry.openAIIntegration({ recordInputs: false, recordOutputs: false })], }));
These integrations need the vite plugin. Without it, they record nothing, and with
debug: truethe SDK logs a warning. -
feat(node): Add
onSpanEndtohttpIntegration(#25581)httpIntegrationandhttpServerSpansIntegrationnow acceptonSpanEnd, a hook that runs when the response for an incoming request finishes, before its span ends. Use it to change the span based on the response. Deno and Bun already have this option. -
feat(node, bun, deno, cloudflare): Align portable exports across server SDKs (#25583)
Node, Bun, Deno and Cloudflare now export the same helpers from
@sentry/coreand@sentry/server-utilswhere they work on that runtime:- Node and Bun now export
moduleMetadataIntegration,instrumentPostgresJsSql,instrumentCreateReactAgent,awsIntegrationand theFlueOptionstype.awsIntegrationwas already in their default integrations. - Deno and Cloudflare now export
parameterizeandinstrumentStateGraphCompile. - Bun and Cloudflare now export the
LogandLogSeverityLeveltypes. - Deno now exports
fastifyIntegration, which was already in its default integrations.
- Node and Bun now export
-
feat(nuxt): Start the server SDK on the Nuxt Vite server (experimental) (#25524)
Sentry now supports Node.js production builds using Nuxt 4.6's experimental Vite server (
server: { builder: 'vite' }). Yoursentry.server.configloads automatically, enabling request tracing and automatic database spans for supported libraries.Development mode, Cloudflare, automatic capture of server rendering errors, and connecting server and browser traces via HTML meta tags are not yet supported. This experimental support may change in minor releases.
-
ref(deno, bun): Use a shared request handler wrapper for
Deno.serveandBun.serve(#25586, #25587)Deno.serveandBun.servenow use the same request handler wrapper, which Cloudflare will also use. On both runtimes, errors inOPTIONSandHEADrequests now carry the request data, and the SDK keeps everySet-Cookieheader of a response instead of only the last one.For Deno users:
- When the source of a streamed response fails, the SDK now captures the error and marks the span as failed.
- The SDK no longer reads a streamed response ahead of the client.
Bun.servespans now follow the Sentry conventions forhttp.serverspans, as on Node, Deno and Cloudflare:url.templateis nowhttp.route. Routes without parameters also gethttp.routeand theroutesource.url.domainis nowserver.address.- A request to
/gets theroutesource and the nameGET /. - Spans also get
user_agent.originalandhttp.request.body.size.
Other Changes
- chore(deps): Bump rrweb to 2.45.0 (#25794)
- feat: Export the Node bundler plugins from SDKs that wrap @sentry/node (#25536)
- feat(cloudflare): instrument Workers KV bindings (#25488)
- feat(nextjs): Warn when Next.js production builds miss the instrumentation file (#25603)
- feat(react-router): Support renderToReadableStream in createSentryHandleRequest (#25254)
- feat(server-utils): Emit
execute_toolspans for Anthropic'sbeta.sessions.events.toolRunner()(#25554) - feat(server-utils): Record Workers AI Clairic calls as gen_ai.extract spans (#25624)
- feat(server-utils): Instrument together-ai 1.x (#25823)
- fix(browser): Preserve empty stacks in continuous profiles (#25764)
- fix(browser): resolve request URLs against location.href in tracing (#25784)
- fix(build): Make CJS re-exports visible to Node ESM imports (#25599)
- fix(bun): Add systemErrorIntegration to default integrations (#25681)
- fix(cloudflare): Bind a default re-export with
varin the Vite transform (#25663) - fix(cloudflare): Do not add back channel integrations the user removed (#25585)
- fix(cloudflare): Skip comments when locating the
defaultkeyword in the Vite transform (#25741) - fix(core): allow project arrays in framework build options (#25534)
- fix(core): Drop sampled-out errors before they take a promise buffer slot (#25751)
- fix(core): End node:http client spans when the response is destroyed (#25503)
- fix(core): Preserve AI proxy property references (#22474)
- fix(core): Resolve relative URLs when enhancing fetch error messages (#25555)
- fix(feedback): Wait for frames without the form before capturing the screenshot (#25658)
- fix(hono): Make the Hono middleware types compile on Hono 5 (#25452)
- fix(node): Flush buffered streamed spans on process exit (#25539)
- fix(node): Read module versions from the isolated layouts of pnpm and Bun (#25526)
- fix(node): Set the eve conversation id on model.started for eve 0.84+ (#25809)
- fix(node): Skip spans for outgoing requests to Sentry via
undicifetch andnode:http(#25441) - fix(node): Use the request method for Hapi routes with multiple methods (#25527)
- fix(nuxt,nitro): Accept Nitro 3 betas without narrowing peer support (#25815)
- fix(opentelemetry): Convert OpenTelemetry performance.now() timestamps (#25790)
- fix(react): Avoid double slashes in manifest route names (#25770)
- fix(react): Parameterize React Router transactions with encoded params (#25639)
- fix(remix): Drop Remix 3 release candidates from the peer range (#25808)
- fix(replay): Apply attribute masking to breadcrumb messages (#25180)
- fix(server-utils): Cap the runs the LangChain callback handler keeps open (#25595)
- fix(server-utils): Keep OpenAI streamed tool calls that have no index (#25622)
- fix(server-utils): Keep OpenRouter evaluation confidence and legend on Vercel AI spans (#25644)
- fix(server-utils): Nest Flue runs on Node under the request that dispatched them (#25549)
- fix(server-utils): Record AI SDK tool spans for tools run outside its tool loop (#25820)
- fix(server-utils): Use cumulative input and cache token counts from streamed message_delta (#25623)
- fix(server-utils): Use the stored pi-durable session id as conversation id (#25792)
- fix(tanstackstart-react): Unminify server errors in Nitro builds (#25360)
Internal Changes
- chore: Add catch-all rule for shared packages in CODEOWNERS (#25789)
- chore: Pin pnpm 10 in Volta and remove .npmrc (#25641)
- chore: Replace Volta with pnpm-managed node versions (#25689)
- chore: Update PR template and prompt agent to use it (#25763)
- chore: Use the isolated pnpm node_modules layout (#25368)
- chore(ci): remove browser flaky-test detector workflow (#25712)
- chore(ci): remove PR review reminders (#25711)
- chore(deps-dev): Bump @remix-run/route-pattern from 0.24.1 to 1.0.0 in the remix group across 1 directory (#25652)
- chore(deps-dev): Bump es-check from 7.2.1 to 9.8.1 (#25656)
- chore(deps-dev): Bump hono from 4.13.9 to 4.13.11 in /packages/hono (#25716)
- chore(deps-dev): Bump next from 15.5.27 to 15.5.28 in /packages/nextjs (#25661)
- chore(deps-dev): Bump zod from 3.25.76 to 4.6.7 (#25655)
- chore(deps): Bump next from 16.3.8 to 16.4.1 in /dev-packages/e2e-tests/test-applications/vinext-cf-workers (#25672)
- chore(deps): Bump zod from 4.5.4 to 4.6.6 in /dev-packages/e2e-tests/test-applications/node-eve (#25722)
- chore(deps): Bump zod from 4.5.4 to 4.6.6 in /dev-packages/e2e-tests/test-applications/node-mastra (#25721)
- ci: Always report optional E2E results and update the report on re-runs (#25651)
- ci: Fail the optional E2E report job when it cannot update the PR comment (#25819)
- ci: Prepare required workflows for develop merge queue (#25642)
- ci: Remove temporary pull_request trigger from optional E2E workflow (#25817)
- ci: Show an unknown status for optional E2E jobs without a final result (#25660)
- ci: Upload the weekly flaky test report as an artifact (#25814)
- ci(e2e): rightsize namespace runner jobs
- ci(size-limit): Measure bundles when increases are accepted (#25788)
- docs: Update contribution guidelines (#25714)
- docs: Use dark-mode-aware Sentry logo in READMEs (#25775)
- feat(deps): Bump fastify from 5.12.5 to 5.12.7 (#25654)
- docs(changelog): Clarify React Router framework mode minimum in 11.0.0 (#25771)
- ref(core): Add shared
ServerRequestOptionstype across runtimes (#25579) - ref(hono): Share the middleware classification (#25453)
- ref(server-utils): Use
GEN_AI_EXTRACTop from@sentry/conventions(#25734) - Remove permissions from settings.json (#25766)
- test: Check that runtimes drop the server spans of managed tunnel requests (#25414)
- test: Fix unit test timeouts from cold dynamic imports (#25811)
- test: Wire the managed tunnel by hand in Node, Cloudflare and Next.js (#25785)
- test(browser): Fix flaky long task, pageload cancellation and CLS timing assertions (#25518)
- test(cloudflare): Add Workers AI E2E test for Clairic (#25625)
- test(cloudflare): Bump agents and MCP SDK in cloudflare-mcp-agent e2e app (#25830)
- test(cloudflare): Check that Durable Object invocations end when the method returns (#25511)
- test(cloudflare): Fix flaky D1 query span naming test (#25810)
- test(e2e): Add node-flue-send-to-sentry test app (#25550)
- test(e2e): Assert source map upload and stripping with a shared helper (#25636)
- test(e2e): Fix optional Anthropic and OpenAI decisions apps (#25795)
- test(e2e): Pin @mastra/deployer in node-mastra to match @mastra/core (#25824)
- test(e2e): Pull Supabase images from GHCR (#25718)
- test(nextjs): Raise @opennextjs/cloudflare floor for nextjs-16 (#25682)
- test(nextjs): Unpin nextjs-16-cf-workers latest variant back to next@latest (#25124)
- test(node): Retry stalled npm installs in integration test setup (#25685)
- test(react-router): Use a separate URL per loader error test in instrumentation API e2e test (#25607)
- test(remix): Cover prefetched navigations in the Remix 3 E2E app (#25829)
- test(replay): Fix flaky EventBufferCompressionWorker size limit test (#25519)
- test(tanstackstart-react): Add source map E2E app (#25363)
Work in this release was contributed by @4ktLuffy, @faizansaiyed123, @itisrmk, @kunal649, @kyrylolvov, @larcane97, @lfantone, @pcbeingused333, @psh4607, and @seongwon030. Thank you for your contributions!
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 29.63 KB |
| @sentry/browser - with treeshaking flags | 27.79 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.69 KB |
| @sentry/browser (incl. Tracing) | 51.37 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.38 KB |
| @sentry/browser (incl. Tracing, Profiling) | 54.24 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.64 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.52 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 95.25 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 107.93 KB |
| @sentry/browser (incl. Feedback) | 46.77 KB |
| @sentry/browser (incl. sendFeedback) | 34.59 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.57 KB |
| @sentry/browser (incl. Metrics) | 30.61 KB |
| @sentry/browser (incl. Logs) | 30.89 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.55 KB |
| @sentry/react | 31.4 KB |
| @sentry/react (incl. Tracing) | 53.61 KB |
| @sentry/vue | 37.7 KB |
| @sentry/vue (incl. Tracing) | 54.2 KB |
| @sentry/svelte | 29.66 KB |
| @sentry/remix (Remix 3 client bundle) | 56.3 KB |
| CDN Bundle | 31.32 KB |
| CDN Bundle (incl. Tracing) | 51.86 KB |
| CDN Bundle (incl. Logs, Metrics) | 33.47 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.76 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 73.92 KB |
| CDN Bundle (incl. Tracing, Replay) | 89.09 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 90.99 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 95.08 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 97.02 KB |
| CDN Bundle - uncompressed | 92.1 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 153.62 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 98.5 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 159.45 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 226.91 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 272.39 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 278.21 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 285.77 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 291.58 KB |
| @sentry/nextjs (client) | 56.39 KB |
| @sentry/sveltekit (client) | 51.82 KB |
| @sentry/core/server | 43.26 KB |
| @sentry/core/browser | 13.62 KB |
| @sentry/node | 151.41 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 79.75 KB |
| @sentry/node - without tracing | 93.52 KB |
| @sentry/node - without channel injection | 132.48 KB |
| @sentry/aws-serverless | 101.5 KB |
| @sentry/cloudflare (withSentry) - minified | 193.25 KB |
| @sentry/cloudflare (withSentry) | 480.29 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 213.35 KB |