Repository navigation
Releases
11.17.0
Important Changes
-
feat(browser): Report LCP and INP subparts on web vital spans (#25914)
LCP spans now carry
browser.web_vital.lcp.resource_load_delay,browser.web_vital.lcp.resource_load_durationandbrowser.web_vital.lcp.element_render_delay. INP spans now carrybrowser.web_vital.inp.input_delay,browser.web_vital.inp.processing_durationandbrowser.web_vital.inp.presentation_delay. This shows which phase made an LCP or INP slow. -
feat(core): Gate URL fragments behind
urlQueryParams(#26753)The
urlQueryParamsoption now also applies to URL fragments, since OAuth redirects and hash routing can put tokens there.key=valuepairs in a fragment are filtered like query params, and the fragment is dropped whenurlQueryParamsis off. This coversurl.full,url.fragment,request.urland breadcrumbs. Plain anchors and hash route paths (#details,#/settings) are kept as-is. -
feat(core): Enrich MCP SDK spans instead of duplicating them (#26309)
When the MCP SDK (
@modelcontextprotocol/server) starts its own OpenTelemetry span for an MCP message and that span reaches Sentry, Sentry now adds its MCP attributes to that span instead of starting a second one. This span is a child of the surrounding span, such ashttp.server, not its own transaction. Without the MCP SDK's OpenTelemetry tracing, nothing changes. -
feat(node): Add ClickHouse instrumentation (#26211)
The new
clickhouseIntegrationcreates database spans for@clickhouse/clientand@clickhouse/client-web. It is exported from@sentry/node,@sentry/cloudflareand the other server SDKs. -
feat(react-router, remix): Support
sourcemaps.upload,injectDebugIdsanddelete@sentry/react-routerand@sentry/remixnow accept thesourcemaps.upload,sourcemaps.injectDebugIdsandsourcemaps.deleteoptions. In React Router, source maps you turned on yourself are no longer deleted unless you setdelete: true, andrelease.create: falseis now respected.
Other Changes
- feat(core): Add sentry.kind, url.path and url.scheme to fetch and XHR spans (#26638)
- feat(core): Record integration options in
defineIntegration(#26779) - feat(core): Report user-set integrations and their options in SDK config (#26708)
- feat(deno): Align deno with node & run integration suites with @sentry/deno (#26595)
- feat(nitro): Add
@sentry/nitro/importentry (#26757) - feat(server-utils): Add onSpanStart/onSpanEnd hooks to the LangChain and LangGraph integrations (#26629)
- feat(server-utils): Skip Fastify hook spans on unsampled requests (#26711)
- feat(solid): Support Solid 2 on Cloudflare Workers (#26741)
- fix(astro): Only inject the server release in builds (#26725)
- fix(bundler-plugins): Fall back to local git history when setting commits (#26760)
- fix(bundler-plugins): Honor release.vcsRemote when associating commits (#26748)
- fix(cloudflare): Do not load a second copy of @sentry/core in Workers (#26568)
- fix(core): Create DSC locally when receiving an incoming trace without DSC (#25934)
- fix(core): Exclude dist from SDK configuration reports (#26702)
- fix(core): Exclude DSN from SDK configuration reports (#26677)
- fix(core): Exclude release from SDK configuration reports (#26701)
- fix(effect): Stop bundling all of Effect with the error reporter (#26730)
- fix(react): Change resetError to a function type property (#26717)
- fix(replay): Do not report dead clicks after a bfcache restore (#26704)
- fix(server-utils): Keep pi-durable 1.6 runs from faulting (#26718)
- fix(server-utils): Read Express mount paths from the router 2.3 layer (#26729)
- fix(server-utils): Trace pi-durable tool calls made by other tools (#26719)
- ref(core): Make isClientClosed and warnIfClientIsActive public, drop getActiveClient (#26745)
Internal Changes
- chore(deps): Bump
@sentry/conventionsto 0.35.0 (#26721) - chore(size-limit): Add @sentry/effect entries (#26716)
- ci: Remove the Validate PR workflow (#26722)
- perf(ci): Move Bun canary integration tests to nightly CI (#26737)
- perf(ci): Reuse integration dependency installs within test workers (#26720)
- perf(ci): Run focused tests for Next.js release injection (#26735)
- perf(ci): Shard Next.js development E2E tests (#26728)
- perf(ci): Split React Router lazy-route E2E tests (#26769)
- perf(ci): Use four workers for Nuxt E2E tests (#26765)
- perf(ci): Use four workers for React Router E2E tests (#26772)
- perf(ci): Use four workers for SvelteKit E2E tests (#26770)
- test(browser-integration-tests): Fix flaky replay errorsInSession and bfcache tests (#26750)
- test(deno): Remove orchestrion suites that the Node suites cover (#26640)
- test(deno): Run more Node suites on Deno with runtime-aware expectations (#26643)
- test(e2e): Expect gen_ai message parts for image decisions in node-openai-decisions (#26752)
- test(e2e): Run express-5 on Bun, Deno and Cloudflare (#26561)
- test(e2e): Use a Workers AI model that still exists in cloudflare-workers-send-to-sentry (#26751)
- test(hono): Check the SDK info of each entry in its real runtime (#26712)
- test(nextjs): Split navigation E2E tests for better shard distribution (#26727)
- test(node): Reuse filesystem integration test servers (#26492)
- test(node): Reuse Hono, Hapi, Koa and Fastify test servers (#26491)
Work in this release was contributed by @adityareddy-dev, @wolfgang42, and @JonasBa. Thank you for your contributions!
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 29.83 KB |
| @sentry/browser - with treeshaking flags | 28.06 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.93 KB |
| @sentry/browser (incl. Tracing) | 52.41 KB |
| @sentry/browser (incl. Tracing Core) | 39.63 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 52.42 KB |
| @sentry/browser (incl. Tracing, Profiling) | 55.24 KB |
| @sentry/browser (incl. Tracing, Replay) | 91.35 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 80.48 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 95.64 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 108.83 KB |
| @sentry/browser (incl. Feedback) | 47.35 KB |
| @sentry/browser (incl. sendFeedback) | 30.38 KB |
11.16.0
Important Changes
-
docs(tanstackstart-react): Promote SDK status to stable (#26691)
This release promotes the
@sentry/tanstackstart-reactSDK to stable. It supports@tanstack/react-start1.169.0 and newer. For details on how to use it, check out the
Sentry TanStack Start SDK docs. -
feat(solid): Add Solid 2 support (alpha)
@sentry/solidnow ships alpha support for Solid 2 under the@sentry/solid/solid2entry point. It captures errors on the client and the server, traces navigations with Solid Router 2 via@sentry/solid/solid2/solidrouter, names server spans after the matched route, and continues the server trace in the browser pageload. The Solid 1 entry points are unchanged. The APIs of the Solid 2 entry may still change in minor releases while it is in alpha.
Other Changes
- feat(deno): Send client reports (#26604)
- feat(nestjs): Handle @nestjs/mcp tool errors in SentryGlobalFilter (#26695)
- feat(server-utils): Record multimodal decision input as gen_ai messages (#26697)
- fix(bun): Apply
httpIntegrationincoming-request options tonode:httpservers (#26611) - fix(cloudflare): Instrument Agent methods before the agents SDK wraps them (#26674)
- fix(cloudflare): Wrap a wrangler main that is a virtual module of another Vite plugin (#26694)
- fix(core): Freeze streamed segment DSC on first flush or segment end (#26653)
- fix(deps): Bump the sentry CLI to ^0.50.0 (#26662)
- fix(nextjs): Run Turbopack orchestrion loader only on instrumented files (#26676)
- fix(nextjs): Skip tunnel hooks on Vercel (#26665)
- fix(server-utils): Set sentry.kind on web request server spans (#26696)
- fix(server-utils): Use the Flue conversation ID on Flue tool spans (#26652)
- ref(node): Move the Server-Timing trace header helper from Next.js to Node (#26651)
Internal Changes
- chore(deps-dev): Bump next from 15.5.28 to 15.5.29 (#26684)
- chore(deps): Bump effect from 4.0.0 to 4.1.4 (#26672)
- ci(release): Update .craft.yml for craft 3.9.0 (#26077)
- fix(deps): Bump @cloudflare/vite-plugin to 1.66.0 in cloudflare-integration-tests (#26660)
- fix(deps): Bump @effect/platform to 0.97.3 in effect-3-node e2e app (#26668)
- fix(deps): Bump @sveltejs/kit to 2.70.4 (#26663)
- fix(deps): Bump fast-xml-parser to 4.5.7 and 5.12.1 (#26667)
- fix(deps): Bump mongoose to 6.13.13 in node-integration-tests (#26657)
- fix(deps): Bump next to 15.5.29 in nextjs-15 e2e apps (#26692)
- fix(deps): Bump next to 16.4.6 in Next.js 16 e2e apps (#26655)
- fix(deps): Bump nitro dev dependency to 3.0.260903-beta (#26664)
- fix(deps): Bump vite to 6.4.6 in node-bundlers e2e app (#26661)
- fix(deps): Remove stale miniflare 4 entries from lockfile (#26669)
- test(bun): Triage the Bun node-suites excludes (#26612)
- test(e2e): Pin NestJS 12 to 12.5.1 (#26698)
- test(node): Consolidate Apollo GraphQL integration assertions (#26681)
- test(node): Consolidate Cron check-in and error scenarios (#26688)
- test(node): Consolidate GraphQL diagnostics-channel checks (#26687)
- test(node): Consolidate MCP integration scenario runs (#26680)
- test(node): Consolidate Mongoose diagnostics-channel checks (#26686)
- test(node): Consolidate MySQL diagnostics-channel checks (#26685)
- test(node): Remove duplicate integration scenarios (#26679)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 29.52 KB |
| @sentry/browser - with treeshaking flags | 27.76 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.67 KB |
| @sentry/browser (incl. Tracing) | 51.57 KB |
| @sentry/browser (incl. Tracing Core) | 39.38 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.57 KB |
| @sentry/browser (incl. Tracing, Profiling) | 54.39 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.68 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.76 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.95 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 108.18 KB |
| @sentry/browser (incl. Feedback) | 47.04 KB |
| @sentry/browser (incl. sendFeedback) | 30.09 KB |
| @sentry/browser (incl. FeedbackAsync) | 35 KB |
| @sentry/browser (incl. Metrics) | 30.81 KB |
| @sentry/browser (incl. Logs) | 31.08 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.73 KB |
| @sentry/react | 31.48 KB |
| @sentry/react (incl. Tracing) | 54.15 KB |
| @sentry/vue | 37.55 KB |
| @sentry/vue (incl. Tracing) | 54.45 KB |
| @sentry/svelte | 29.53 KB |
| @sentry/remix (Remix 3 client bundle) | 57.09 KB |
| CDN Bundle | 31.41 KB |
| CDN Bundle (incl. Tracing) | 51.94 KB |
| CDN Bundle (incl. Logs, Metrics) | 34.13 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 54.45 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 74.2 KB |
| CDN Bundle (incl. Tracing, Replay) | 88.94 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 91.49 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 94.22 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 96.72 KB |
| CDN Bundle - uncompressed | 91.71 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 153.57 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 99.85 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 161.02 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 226.91 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 270.91 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 278.36 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 282.56 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 290 KB |
| @sentry/nextjs (client) ... |
11.15.0
Important Changes
-
feat(core): Continue MCP server traces from
params._meta(#26308)MCP server spans now continue the caller's trace from the
sentry-traceandbaggagekeys in a request's or notification'sparams._meta, so they connect to the agent that called the tool, including over stdio. SetpropagateTraceparent: trueto also continue from a W3Ctraceparentkey. On Streamable HTTP, the MCP span is no longer a child of thehttp.serverspan when the client sends trace context in_meta. It has a span link to that span instead. Messages without valid trace context in_meta, or with trace context from another Sentry org, still join the transport's trace. -
ref(tanstackstart-react): Use
code.file.pathon server function spans (#26495)Server function spans now set the file of the server function in
code.file.pathinstead oftanstackstart.function.filename. Thetanstackstart.function.idattribute is removed.
Other Changes
- feat(astro): Mark pageloads of prerendered pages (#26453)
- feat(aws-serverless): Keep the Lambda extension enabled when http_proxy is set (#26360)
- feat(aws-serverless): Send Lambda extension envelopes through http_proxy (#26359)
- feat(browser): Read the release from the
sentry-releasemeta tag (#26514) - feat(bun): Instrument modules in
bun runon Bun 1.4.6 and later (#26515) - feat(bundler-plugins): Add
sourcemaps.upload,injectDebugIdsanddelete(#26571) - feat(bundler-plugins): Export
resolveReleaseName(#26500) - feat(core): Add
sourcemaps.upload,injectDebugIdsanddeleteto the shared build options (#26576) - feat(core): Inject trace context into outgoing MCP server messages (#26311)
- feat(core): Report only user-set options in experimental SDK config integration (#26616)
- feat(core): Report SDK config on the next tick after setup (#26617)
- feat(deno): Export cron, Pino, Winston and BullMQ instrumentation (#26605)
- feat(nuxt): Add trace meta tags on the Nuxt Vite server (#26581)
- feat(server-utils): Add onSpanStart/onSpanEnd hooks to the Anthropic, Google GenAI and Mistral integrations (#26632)
- feat(server-utils): Add onSpanStart/onSpanEnd hooks to the Mastra, TypeSafe, Workers AI and Bedrock integrations (#26631)
- feat(server-utils): Add onSpanStart/onSpanEnd hooks to the OpenAI integrations (#26586)
- feat(server-utils): Add onSpanStart/onSpanEnd hooks to the pi-ai, Flue and pi-durable integrations (#26628)
- feat(server-utils): Add onSpanStart/onSpanEnd hooks to the Vercel AI integration (#26630)
- feat(server-utils): Decide gen_ai content recording per call for Anthropic, Google GenAI and Mistral (#26470)
- feat(server-utils): Decide gen_ai content recording per call for LangChain and LangGraph (#26473)
- feat(server-utils): Decide gen_ai content recording per call for Mastra, TypeSafe, Workers AI and Bedrock (#26471)
- feat(server-utils): Decide gen_ai content recording per call for OpenAI (#26464)
- feat(server-utils): Decide gen_ai content recording per call for pi-ai, Flue and pi-durable (#26472)
- feat(server-utils): Decide gen_ai content recording per call for Vercel AI (#26468)
- feat(server-utils): Record time to first chunk on streamed gen_ai spans (#26465)
- feat(solid): Add Solid 2 entry with error boundary capture (#26543)
- feat(solid): Add Solid Router 2 tracing for Solid 2 (#26589)
- feat(sveltekit): Support
sourcemaps.upload,injectDebugIdsanddelete(#26606) - feat(tanstackstart-react): Create server function spans in the function middleware (#26484)
- feat(vite-plugin): Add
release.inject: 'html'to keep chunk hashes stable (#26511) - feat(webpack-plugin): Add
release.inject: 'html'to keep chunk hashes stable (#26512) - fix(astro): Deliver the release to the browser through the page HTML (#26506)
- fix(bun): Require Bun 1.4.6 for runtime channel injection in
bun run(#26622) - fix(cloudflare): Publish deferred channel events of CommonJS packages (#26559)
- fix(cloudflare): Send envelopes captured during another invocation's flush (#26633)
- fix(nextjs): Deliver the release at runtime with
release.inject: false(#26509) - fix(nextjs): Mark React DOM frames as not in_app in App Router builds (#26623)
- fix(nextjs): Symbolicate client errors with the Turbopack dev server (#26648)
- fix(nitro): Bundle the runtime plugin in nitro dev (#26518)
- fix(nitro): Skip the dev server's http.server span in dev (#26524)
- fix(nuxt): Pass the client release through runtime config (#26503)
- fix(react-router): Pass the release to the browser in the page (#26508)
- fix(remix): Deliver the release through the rendered page instead of client chunks (#26507)
- fix(server-utils): Avoid a second Workers AI span when an instrumented binding is wrapped again (#26625)
- fix(server-utils): Get Express route paths from the matched layer (#26560)
- fix(server-utils): Keep the conversation ID from setConversationId on Mastra spans (#26647)
- fix(solidstart): Deliver the release to the browser through the page (#26513)
- fix(sveltekit): Deliver the release through the page instead of client chunks (#26505)
- fix(sveltekit): Register the Cloudflare waitUntil fallback in initCloudflareSentryHandle (#26516)
- fix(tanstackstart-react): Deliver the release through the page instead of the client chunks (#26510)
Internal Changes
- chore: Add external contributor to CHANGELOG.md (#26610)
- chore(ci): Skip reviewer assignment when the PR is already approved (#26603)
- chore(size-limit): Measure @sentry/cloudflare with an instrumented CommonJS package (#26572)
- docs(bundler-plugins): Document the caching cost of
release.inject(#26499) - perf(ci): Reduce Vue render debounce in E2E apps (#26573)
- perf(ci): Remove redundant waits from Vue navigation tests (#26575)
- perf(ci): Replace lazy-route test sleeps with segment waits (#26587)
- perf(ci): Run Bun integration tests across six shards (#26636)
- perf(ci): Start E2E databases alongside app builds (#26570)
- perf(ci): Use four workers for Cloudflare integration tests (#26534)
- perf(ci): Use four workers for shared integration suites ([#26533](https://github.com/getsentry/sentry-javascript/pul...
11.14.0
Important Changes
-
feat(browser): Add
browserTracingCoreIntegrationand standalone tracing integrations (#26259, #26260, #26261, #26262, #26273, #26276, #26497)browserTracingIntegrationnow sets up fetch and XHR request spans, linked traces, long tasks and resource spans through the standalonefetchTracingIntegration,xhrTracingIntegration,linkedTracesIntegration,longTasksIntegrationandresourcesIntegration. Its behavior is unchanged. To ship less code, usebrowserTracingCoreIntegration, which keeps pageload and navigation spans, and add only the standalone integrations you need. The CDN bundles export them too. -
ref(server-utils): Share one cron converter across cron integrations (#25918)
Sentry.cron.instrumentCron,instrumentNodeCronandinstrumentNodeSchedulesend the server's time zone when a job has none, so monitors don't report false misses on servers that aren't on UTC. Schedules Sentry can't express exactly, such as per-second schedules, send no monitor config, so the monitor keeps the schedule set in Sentry.Sentry.cron.instrumentNodeCronis deprecated; usenodeCronIntegrationinstead. -
fix(nuxt): Name the database system in
db.system.nameof db0 spans (#26285)Nitro database (db0) spans now set
db.system.nameto the database system of the connector's dialect (mysql,postgresql,sqliteorlibsql), as the OpenTelemetry conventions define it, instead of the connector name. For example, spans of themysql2andplanetscaleconnectors now reportmysql, and spans ofbetter-sqlite3andcloudflare-d1now reportsqlite. Update saved queries, alerts and dashboards that filter on the connector names.
Other Changes
- feat(cloudflare): Deprecate
cacheClientoption (#26494) - feat(cloudflare): Set server name and runtime version from the wrangler config (#26427)
- feat(core): add experimental SDK config integration (#26291)
- feat(server-utils): Instrument Google GenAI decisions as gen_ai.decide spans (#26457)
- feat(server-utils): Record Vercel AI Gateway cost on AI SDK spans (#26462)
- fix(core): Escape
JSON.stringifyoutput that goes into generated code (#26314) - fix(core): Keep the longest active rate limit for each category (#26410)
- fix(nestjs,sveltekit,nuxt,astro): Report the framework SDK name on all runtimes (#26302)
- fix(nuxt): Answer managed tunnel requests on Cloudflare (#26365)
- fix(profiling-node): Use safeDateNow for profile envelope timestamps (#26474)
- fix(server-utils): Mark Mistral and Workers AI spans as cancelled when the caller aborts (#26454)
- fix(server-utils): Support @google/genai v3 in auto-instrumentation (#26441)
Internal Changes
- chore(ci): Route e2e test apps and more packages to SDK subteams in REVIEWERS (#26415)
- chore(deps): Bump next from 16.3.3 to 16.4.5 in /dev-packages/e2e-tests/test-applications/nextjs-16-standalone (#26433)
- chore(deps): Bump next from 16.3.8 to 16.4.5 in /dev-packages/e2e-tests/test-applications/nextjs-16-tunnel (#26438)
- chore(deps): Bump next from 16.4.1 to 16.4.5 in /dev-packages/e2e-tests/test-applications/vinext-cf-workers (#26436)
- chore(deps): Bump next from 16.4.2 to 16.4.5 in /dev-packages/e2e-tests/test-applications/nextjs-16 (#26439)
- chore(deps): Stop Dependabot security updates for test packages (#26443)
- chore: Route reviews to timfish and RulaKhaled (#26444)
- ci: Don't count the PR's owners towards its required reviewers (#26417)
- ci: Fix the lockfile check, the WebKit launch, and slow unit tests (#26458)
- ci: Gate Junior PRs from outside the SDK team on a team or contractor review (#26413)
- ci: List job failures outside tests in the weekly flaky report (#26460)
- ci: Resolve contractors' Slack names in the Junior requester lookup (#26463)
- ci(deps): Bump anthropics/claude-code-action from 1.0.266 to 1.0.276 (#26450)
- ci(deps): Bump getsentry/craft from 3.5.0 to 3.12.0 (#26448)
- ci(deps): Bump getsentry/github-workflows/validate-pr from 01bcb7fe69bb48bacd83e675840e3dc95b33c730 to 6bf4a27612e388f9c113d64f75e25190e814b414 (#26447)
- ci(deps): Bump peter-evans/create-pull-request from 8.1.1 to 8.1.3 (#26449)
- perf(ci): Run Cloudflare integration tests on six ARM shards (#26432)
- perf(ci): Shard Node unit tests across two jobs (#26466)
- perf(ci): Split large Node integration test suites (#26420)
- test: Give each test run its own port and queue (#26479)
- test: Remove wall-clock and flush timing assumptions from unit tests (#26467)
- test: Stop slow Docker steps from failing integration and E2E tests (#26481)
- test(browser): Fix flaky replay and tracing integration tests (#26478)
- test(cloudflare): Accept either order for the two workflow errors in run-errors test (#26446)
- test(cloudflare): Fix the invocation-duration flake and report request errors (#26459)
- test(e2e): Fix flaky hono, Next.js T3, and React Router tests (#26482)
- test(node-integration): Collect traces that arrive in several envelopes (#26480)
- test(tanstackstart-react): Add CSRF middleware to the e2e fixtures (#26451)
- test(tanstackstart-react): Run the tunnel e2e app on TanStack Start stable (#26456)
Work in this release was contributed by @JavierCane. Thank you for your contribution!
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 29.47 KB |
| @sentry/browser - with treeshaking flags | 27.71 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.62 KB |
| @sentry/browser (incl. Tracing) | 51.5 KB |
| @sentry/browser (incl. Tracing Core) | 39.32 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 51.51 KB |
| @sentry/browser (incl. Tracing, Profiling) | 54.32 KB |
| @sentry/browser (incl. Tracing, Replay) | 90.61 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 79.69 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.88 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 107.8 KB |
| @sentry/browser (incl. Feedback) | 46.68 KB |
| @sentry/browser (incl. sendFeedback) | 30.04 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.92 KB |
| @sentry/browser (incl. Metrics) | 30.76 KB |
| @sentry/browser (incl. Logs) ... |
11.13.0
Important Changes
-
feat(sveltekit): Mark pageloads of prerendered and Vercel ISR pages (#26301, #26307)
When SvelteKit serves a page that it rendered earlier, the pageload now has the
page.server_rendering.type: staticattribute. This covers pages prerendered duringvite buildand pages that Vercel caches with ISR (config.isr). For an ISR page, the pageload also links to the request that rendered the page, if that request was sampled.Before, every visitor of a cached ISR page continued the trace of that one request. Now each pageload starts its own trace. Pages with
ssr = falseget no attribute, because the server rendered none of their content. -
feat(nuxt): Mark pageloads of cached pages (#26305)
When Nuxt serves a cached or prerendered page, for example with a
swrorisrroute rule, the pageload now has thepage.server_rendering.type: staticattribute and starts its own trace. If the request that rendered the cached page was sampled, the pageload also links to it. So visitors of a cached page no longer continue the trace of the request that rendered it. -
fix(core): Set
url.schemewithout colon andurl.portas a number (#26284)HTTP spans that the SDK builds from a
URLnow sendurl.schemewithout the trailing colon (httpsinstead ofhttps:) andurl.portas a number instead of a string, as the Sentry conventions define them and as Nodehttp.serverspans already do. This changeshttp.serverspans from@sentry/cloudflare,Bun.serve, Deno and Nitro, and outgoingnode:httpclient spans. Update saved queries, alerts and dashboards that filter onurl.scheme:"https:"or onurl.portas a string. -
feat(cloudflare): Continue the Cloudflare trace of the invocation (#25613)
When tracing is not set up (no
tracesSampleRateortracesSampler), errors and logs from fetch, scheduled, queue and email handlers and fromWorkerEntrypointRPC methods now get the trace id that Cloudflare gives the invocation. With this trace id, you can find the Cloudflare spans and logs of an error in Workers Observability. This needs workerd 1.20261009.1 or newer and Workers Observability turned on. An incoming Sentry trace still has precedence.The
parent_span_idof these events is the id of a Cloudflare span. This span is in Sentry only when you export your Workers traces to Sentry. -
feat(server-utils): Record Bedrock prompts and responses (#26249, #26362, #26414)
Amazon Bedrock spans from
awsIntegrationnow record prompts, system instructions, tool definitions and responses by default, as the other AI integrations do. This applies to theConverse,ConverseStream,InvokeModelandInvokeModelWithResponseStreamcommands.To stop recording prompts or responses for all AI integrations, set
dataCollection: { genAI: { inputs: false, outputs: false } }. To stop it only for Bedrock, use the newawsIntegrationoptions, which take precedence overdataCollection.genAI:Sentry.init({ integrations: [Sentry.awsIntegration({ recordInputs: false, recordOutputs: false })], });
Other Changes
- feat(aws-serverless): Add HTTP request and response attributes to function.aws spans (#26226)
- feat(aws-serverless): Ignore static asset and preflight invocations by default (#26228)
- feat(bundler-plugins): Delete source maps with
deleteSourcemapsAfterUpload: truewhen no upload runs (#26281) - feat(bundler-plugins): Enable external source maps and delete them after upload in the esbuild plugin (#25648)
- feat(cloudflare): Instrument
traceandtailStreamhandlers (#26250) - feat(core): Add
getTraceServerTimingHeaderandisSharedCacheable(#26325) - feat(core): capture MCP OAuth client names per request (#24508)
- feat(core): Support Zod 4 errors in zodErrorsIntegration (#25756)
- feat(nextjs): Emit the tunnel route handler (#25424)
- feat(nextjs): Send the render start of a cached page to the browser (#26397)
- feat(nextjs): Send the trace in the
Server-Timingheader of document responses (#26107) - feat(nextjs): Use the Bun integrations when Next.js runs on Bun (#26294)
- feat(nextjs): Use the Deno fetch integration when Next.js runs on Deno (#26295)
- feat(node): Capture the original job error for failed BullMQ jobs (#26352)
- feat(node): Instrument HTTP/2 servers that use the compat API (#25992)
- feat(node): Publish flat CJS builds to cut
@sentry/nodestartup time (#25968) - feat(nuxt): Instrument Nitro v3 cache storage (#25951)
- feat(nuxt): Send the render start of a cached page to the browser (#26399)
- feat(react-router): Export createSentryHandleError from the Cloudflare entry (#26343)
- feat(server-utils): Add pi-ai integration (#25937)
- feat(server-utils): Enable pi-ai by default & use it for Flue & pi-durable (#25940)
- feat(sveltekit): Send the render start of a cached page to the browser (#26398)
- feat(tanstackstart-react): Initialize the SDK when the Nitro server starts (#26224)
- fix(anthropic): End and mark messages.stream() span as cancelled on abort (#26236)
- fix(astro, cloudflare): Run the Cloudflare SDK on the server for Cloudflare Pages (#26188)
- fix(browser): Accept managed tunnel options in the
BrowserClientconstructor (#26313) - fix(browser): Handle parentheses in function names in stack parsers (#26233)
- fix(browser): Instrument empty-URL XHR and show the page URL in breadcrumbs (#26201)
- fix(browser): Send same-origin string tunnels as
application/x-sentry-envelope(#26299) - fix(browser): Skip CLS on browsers without Array.prototype.at (#26347)
- fix(bundler-plugins): Keep uploading when a directory has no source maps (#26092)
- fix(bundler-plugins): Skip default commit association on Vercel builds that --auto can't resolve (#26320)
- fix(bundler-plugins): Stop defaulting
urlto sentry.io (#26252) - fix(cloudflare): Capture errors that fail a workflow run outside a step callback (#26316)
- fix(cloudflare): Forward method, headers and body when a Request is passed as fetch init (#26368)
- fix(cloudflare): Have
@flue/runtimeprovide its own namespace (#25935) - fix(cloudflare): Skip auto-instrument warning for TanStack Start tunnel shim (#26239)
- fix(core): Always return a string from
_enhanceErrorWithSentryInfo(#26349) - fix(nextjs): Inject build values into instrumentation for an external server SDK (#26292)
- fix(nextjs): Run Turbopack loaders in worker threads on Bun (#26293)
- fix(opentelemetry): Keep live context link when passing a scope to withScope (#26234)
- fix(replay): Minify the compression worker to ES2020 (#26355)
- fix(server-runtime-injection): Register the CJS loader hook from the CJS build (#26278)
- fix(server-utils): Count Google GenAI tool-use prompt tokens as input tokens (#25834)
- fix(server-utils): Instrument deps excluded f...
11.12.0
Important Changes
-
feat(bundler-plugins): Enable hidden source maps and remove them after upload (#25637, #25645, #25646, #25647, #25648)
The Sentry Rollup, Vite, webpack and esbuild plugins now turn on hidden source maps when your bundler has no source maps enabled and the plugin can upload them. They upload the maps to Sentry and remove them from the build output. You no longer need to set
sourcemap: 'hidden'orfilesToDeleteAfterUploadglobs:sentryVitePlugin({ org, project, authToken });
The new
sourcemaps.deleteSourcemapsAfterUploadoption controls the removal:- Unset: the plugin removes only the source maps it turned on itself. Source maps you enabled yourself stay in the build output, as before.
true: the plugin also removes source maps you enabled yourself, and switches visible source maps to hidden. Set this if you already usesourcemap: 'hidden'and want to drop yourfilesToDeleteAfterUploadglobs.false: the plugin never removes source maps.
Builds in development mode or without an auth token, org and project do not change.
-
feat(cloudflare): Propagate tracing context through Queue messages (#25306)
Cloudflare Queue consumers can now link to the traces of the producers that sent the messages. Set
queueTracePropagationBindingsto the producer bindings that should add trace data to plain-object message bodies. Consumers remove this data before your handler runs, and thequeue.processspan links to every producer in the batch.export default Sentry.withSentry( env => ({ dsn: env.SENTRY_DSN, queueTracePropagationBindings: ['BILLING_QUEUE', /^JOBS_/], }), handler, );
-
feat(core): Answer managed tunnel requests in the runtime (#25997, #25998, #25999, #26000, #26001)
serveTunnelIntegration()now answers tunnel requests before they reach your app, in Node.js, Bun, Deno, Cloudflare Workers and AWS Lambda. You no longer need a framework integration or a route handler, so any server setup works with only the integration:Sentry.init({ dsn, integrations: [Sentry.serveTunnelIntegration()] });
To answer tunnel requests from your own code, set
serveTunnelIntegration({ intercept: false })and callhandleTunnelRequestIfMatched.
Other Changes
- feat(server-utils): Always warn on Bun when no channel injection is detected (#25857)
- feat(server-utils): Group the tool spans of an Anthropic session runner under one invoke_agent span (#25995)
- feat(tanstackstart-react): Deprecate
tunnelRoute(#26225) - fix(aws-serverless): Fork isolation scope per invocation (#26191)
- fix(aws-serverless): Omit default port from url.full on function.aws spans (#26227)
- fix(browser): Keep the current origin for
//paths inurl.full(#26165) - fix(cloudflare): Capture NonRetryableError before the final workflow step attempt (#26161)
- fix(cloudflare): Initialize the SDK before constructing a Durable Object (#26218)
- fix(cloudflare): Keep framework-managed methods when a Durable Object constructor throws (#25851)
- fix(core): Avoid stack overflow in FunctionToString on cyclic Proxy prototype chains (#26162)
- fix(core): Preserve parentheses in anonymous Node stack paths (#26216)
- fix(core): stop normalize() from throwing on symbol and null-prototype errors (#25967)
- fix(core): Use the final segment span name for streamed spans that end before a rename (#26178)
- fix(deps): Bump the sentry CLI to ^0.49.0 (#26200)
- fix(esbuild): Avoid import-is-undefined warning for entries without a default export (#26132)
- fix(hono): Name routes without c.req.matchedRoutes (#25454)
- fix(nextjs,sveltekit): Hide git revision console on Windows (#26223)
- fix(node): Patch the mutable fs object in fsIntegration under native ESM (#26086)
- fix(node): Read syncBuiltinESMExports off the module namespace so Deno can load @sentry/node (#26155)
- fix(server-utils): Count Bedrock prompt-cache tokens as input tokens (#26147)
- fix(server-utils): Create an invoke_agent span for LangGraph stream() (#25749)
- fix(server-utils): End Bedrock stream spans with an error status on failure (#26131)
- fix(server-utils): Keep Bedrock InvokeModel spans for byte, non-JSON, or model-less bodies (#26124)
- fix(server-utils): Mark AI streaming spans as errored when the stream fails midway (#26023)
- fix(server-utils): Read Bedrock Claude stream output tokens from message_delta (#26170)
- fix(server-utils): Read Bedrock Mistral and Cohere stream token counts from invocation metrics (#26176)
- fix(server-utils): Record Anthropic system instructions from text blocks (#26182)
- fix(server-utils): Record Bedrock finish reasons as a JSON string (#26184)
- fix(server-utils): Record LangGraph finish reasons as a JSON string (#26185)
- fix(server-utils): Record Vercel AI system instructions from message objects (#26181)
- fix(sveltekit): Read navigation untracked in the Kit 3 fetch wrapper (#26136)
Internal Changes
- chore(deps): Bump @modelcontextprotocol/server and client to 2.4.0 (#26116)
- chore(deps): Bump
@sentry/conventionsto 0.31.0 (#26160) - chore(deps): Bump
@sentry/conventionsto 0.32.0 (#26222) - chore(deps): Bump body-parser to fix CVE-2026-111181 (#26164)
- chore(deps): Bump dependencies to fix in-range security alerts (#26221)
- chore(deps): Bump nanoid to fix CVE-2026-73086 (#26173)
- chore(deps): Bump nx from 22.7.10 to 24.0.3 (#26110)
- chore(deps): Bump path-to-regexp to fix CVE-2026-4867 (#26174)
- chore(deps): Bump rrweb to 2.46.0 (#26241)
- chore(deps): Bump vite to 6.4.5 and 7.3.7 (#26113)
- chore(deps): Remove unused dependencies from workspace packages (#26230)
- chore(deps-dev): Bump vite from 8.3.5 to 8.3.6 (#26243)
- chore: use native
node:fsfor removal scripts (#26219) - docs: Point Sentry Conventions links to conventions.sentry.dev (#26156)
- feat(deps): Bump ws from 8.18.0 to 8.22.2 (#26242)
- fix(ci): refresh lockfile deprecation metadata (#26183)
- perf(ci): (more) sharding of browser and runtime integration tests (#26163)
- perf(ci): cache WebKit system package downloads (#26198)
- perf(ci): combine circular dependency checks across entrypoints (#26195)
- perf(ci): decouple ordinary ...
11.11.0
Important Changes
-
ref(cloudflare): Use the shared request handler wrapper (#25588)
Cloudflare Workers now use the same request handler wrapper as
Deno.serveandBun.serve. Changes for Cloudflare users:- Request spans now set
client.addressfrom theCF-Connecting-IPheader (or another forwarding header), as on the other runtimes. This followsdataCollection.userInfo, which istrueby default. To leave it out, setdataCollection: { userInfo: false }. - Request spans now have the response header attributes, and events have the
responsecontext with the status code. - When the source of a streamed response fails, the SDK now captures the error and marks the span as failed. With
captureErrors: false, it does not capture it. - Request spans now list every
Set-Cookieheader of a response, as on Deno and Bun. - Without
AsyncLocalStorage(for example on Shopify Oxygen), events now also get the request URL and method.
- Request spans now set
-
feat(nestjs): Add an option to monitor every @Cron method (#25471)
Set
monitorCronJobs: trueonnestIntegration()to send check-ins for every@Cron()method, without adding@SentryCronto each one. It's off by default. Each monitored job creates a monitor in Sentry, and monitors are billed. UseexcludeCronJobsto skip jobs by slug. Methods that also have@SentryCroncheck in once, with the slug and options passed to@SentryCron. -
feat(node): Add cronJobIntegration to monitor cron jobs (#25477)
Add
Sentry.cronJobIntegration()tointegrationsto send check-ins for every namedCronJobof thecronpackage (4.3+), with the job name as the monitor slug. It's off by default. Each monitored job creates a monitor in Sentry, and monitors are billed. UseexcludeJobsto skip jobs by name.Sentry.cron.instrumentCronis deprecated; usecronJobIntegrationinstead. -
fix(server-utils): Instrument @anthropic-ai/sdk 1.x and turn off its own OTel spans (#25750)
The Anthropic integration now instruments
@anthropic-ai/sdk1.x. Since 0.134 the SDK also records its own OpenTelemetry spans, such asanthropic.messages.create, which duplicated Sentry'sgen_aispans. Once Sentry instruments the SDK, it setsANTHROPIC_OPEN_TELEMETRY=falseto turn those spans off. To keep them, setANTHROPIC_OPEN_TELEMETRY=trueor pass theopenTelemetryoption to the Anthropic client. -
feat(nextjs): Mark pageloads of cached pages (#25318)
When Next.js serves a page from its cache, for example an ISR page or a
cacheComponentsshell, the pageload now has thepage.server_rendering.typeattribute. It isstaticif the whole page came from the cache, andpartially_staticif parts of it rendered for this request. Then the pageload stays connected to this request, as before. If the request that rendered the cached page was sampled, the pageload also links to it. So in Sentry, a cached page no longer looks like missing server instrumentation.
Other Changes
- feat(astro): Add
@sentry/astro/integrationentry for the Astro integration (#25726) - feat(bundler-plugins): Add
sourcemaps.deleteSourcemapsAfterUploadand staged uploads (#25637) - feat(nestjs): Derive SentryCron monitor config from @Cron (#25013)
- feat(nextjs): Add
applicationKeyExcludeDependenciesoption (#25818) - feat(node): Add
awsLambdaWebIntegrationfor Lambda Web Functions (#25355) - feat(node): Add BullMQ integration (#21777)
- feat(node): Add nodeCronIntegration to monitor node-cron tasks (#25473)
- feat(node): Add nodeScheduleIntegration to monitor node-schedule jobs (#25474)
- feat(node): Support postgres v4 through its native tracing channels (#26076)
- feat(server-utils): Extract
getSqlSpanNamefor SQL span names (#25929) - feat(server-utils): Move to new
getSqlQueryAttributeshelper for consistency (#25927) - feat(server-utils): Record AI SDK v7 runtime and tool context on Vercel AI spans (#25774)
- feat(server-utils): Set
db.operation.nameon SQL spans (#25850) - feat(server-utils): Support @mistralai/mistralai v3 (#25827)
- feat(solidstart): Export
withSentryfrom@sentry/solidstart/vite(#25725) - fix(astro): Initialize the server SDK on the first endpoint request (#25731)
- fix(browser): Attribute long animation frame spans to the longest script (#25990)
- fix(bundler-plugins): Inject debug IDs into every esbuild rebuild (#26099)
- fix(bundler-plugins): upload literal artifact paths (#25356)
- fix(cloudflare): Run build-time instrumentation in vite dev (#25777)
- fix(core): Call native toString without page-replaceable lookups in FunctionToString (#25921)
- fix(core): Enforce linked error limits for aggregate and suppressed errors (#25873)
- fix(core): Only create Supabase db spans when there is a parent span (#25807)
- fix(core): preserve span links through beforeSendSpan (#25566)
- fix(core): Respect header collection for session user agents (#25871)
- fix(deps): Bump glob to 14 and drop the direct dependency from react-router (#26014)
- fix(nextjs): Don't abort Cache Components renders on Cloudflare Workers when requests overlap (#25315)
- fix(nextjs): Drop tunnel requests under the Next.request proxy root span (#26096)
- fix(nextjs): Fork isolation scope for Next.request proxy root spans (#26084)
- fix(nextjs): Strip source map comments before trailing debug IDs (#25881)
- fix(nitro): Capture errors thrown in tasks (#26089)
- fix(nuxt): Keep storage instrumentation plugin synchronous (#25949)
- fix(replay): Skip buffered replays for captureMessage stacks from the attachStacktrace default (#25846)
- fix(server-utils): Fix orchestrion source maps of instrumented modules (#25772)
- fix(server-utils): Read the pi-durable session id in every phase outside a run (#25838)
- fix(server-utils): Require a parent span for Firestore operations (#25855)
- fix(server-utils): Require a parent span for Tedious queries (#25822)
- fix(server-utils): Use onlyIfParent for Firestore spans (#25877)
- fix(server-utils): Use onlyIfParent for Tedious spans (#25876)
- fix(solidstart): Serve the managed tunnel under Vite's base on SolidStart 2 (#25848)
- fix(sveltekit): Resolve Handle and ResolveOptions types on SvelteKit 3 (#26085)
- fix(wasm): Skip length prefix in 16-byte build IDs (#24857)
- ref(core): Deprecate the released
handleTunnelRequestform and reword theserveTunnelIntegrationdocs (#25844)
Internal Changes
- chore(ci): Ignore Dependabot bumps for deps that are also peer deps (#26015)
- chore(ci): Remove nightly sentry-lighthouse upload workflow (#25966)
- chore(dependabot): Group related dependency updates (#26059)
- chore(dependabot): Ignore major react-router updates (#25892)
- chore(dependabot): Preserve SDK compatibility baselines ([#26013](https://github.com/getsentry/...
11.10.0
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 ...
10.78.0
- feat(v10/deno): Re-export portable helpers that Cloudflare exposes (#25708)
- fix(v10/core): Drop sampled-out errors before they take a promise buffer slot (#25753)
- fix(v10/core): Stop sending client reports for breadcrumbs (#25752)
- fix(v10/core): Use
trace_metricdata category for metrics rate limits and client reports (#25612) - fix(v10/nextjs): Don't crash Cloudflare workers on import of the Next.js version helper (#25730)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 27.64 KB |
| @sentry/browser - with treeshaking flags | 26.12 KB |
| @sentry/browser (incl. Tracing) | 46.2 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 47.96 KB |
| @sentry/browser (incl. Tracing, Profiling) | 50.87 KB |
| @sentry/browser (incl. Tracing, Replay) | 84.73 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 74.6 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 89.33 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 101.65 KB |
| @sentry/browser (incl. Feedback) | 44.42 KB |
| @sentry/browser (incl. sendFeedback) | 32.34 KB |
| @sentry/browser (incl. FeedbackAsync) | 37.34 KB |
| @sentry/browser (incl. Metrics) | 28.7 KB |
| @sentry/browser (incl. Logs) | 28.94 KB |
| @sentry/browser (incl. Metrics & Logs) | 29.6 KB |
| @sentry/react | 29.42 KB |
| @sentry/react (incl. Tracing) | 48.46 KB |
| @sentry/vue | 33.39 KB |
| @sentry/vue (incl. Tracing) | 48.52 KB |
| @sentry/svelte | 27.66 KB |
| CDN Bundle | 30 KB |
| CDN Bundle (incl. Tracing) | 48.13 KB |
| CDN Bundle (incl. Logs, Metrics) | 31.56 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 49.42 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 70.13 KB |
| CDN Bundle (incl. Tracing, Replay) | 84.97 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 86.24 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 90.65 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 91.9 KB |
| CDN Bundle - uncompressed | 89.11 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 145.03 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 93.71 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 148.92 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 216.26 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 262.18 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 266.05 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 275.56 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 279.42 KB |
| @sentry/nextjs (client) | 51.06 KB |
| @sentry/sveltekit (client) | 46.63 KB |
| @sentry/core/server | 79.78 KB |
| @sentry/core/browser | 66.16 KB |
| @sentry/node-core | 62.59 KB |
| @sentry/node | 124.3 KB |
| @sentry/node (incl. diagnostics channel injection) | 167.44 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 166 B |
| @sentry/node/light | 50.96 KB |
| @sentry/node - without tracing | 74.09 KB |
| @sentry/aws-serverless | 83.04 KB |
| @sentry/cloudflare (withSentry) - minified | 200.2 KB |
| @sentry/cloudflare (withSentry) | 493.63 KB |
10.77.1
Important Changes
-
feat(v10/nextjs): Add a tunnel route handler that sends only the event payload to Sentry (#25559)
The
tunnelRouteoption can now send events through a route handler in your app. The handler forwards only the event payload to Sentry, and no request headers. To use it, add this file next to yourtunnelRouteoption:// app/sentry-tunnel/route.ts (or src/app/sentry-tunnel/route.ts) export { POST } from '@sentry/nextjs/tunnel';
The handler accepts events for the DSN of your server SDK. To accept other DSNs, use
createSentryTunnelRoute({ allowedDsns })from the same import. Without the file, the tunnel route works as before.With the handler, tunnel requests go through your middleware. If your middleware blocks unauthenticated requests, exclude the tunnel route in its
matcher.Also, the server no longer sends spans of tunnel requests when span streaming is on, because these spans only show the SDK's own traffic.
-
feat(v10/nextjs): Send tunnel route requests with
credentials: 'omit'(#25561)With
tunnelRouteand no tunnel route handler,@sentry/nextjsnow sends events from the browser withcredentials: 'omit', because the tunnel route does not need cookies.
If a layer in front of your app checks cookies before it lets requests through (for example Vercel Deployment Protection), you can send them again in your browserSentry.initcall:// instrumentation-client.ts Sentry.init({ transportOptions: { fetchOptions: { credentials: 'same-origin' } }, });
-
fix(v10/deps)!: Limit
@opentelemetry/apito<1.10.0and the OpenTelemetry SDK to<3.0.0(#25715)Breaking change
If your app uses
@opentelemetry/api1.10.0 or OpenTelemetry SDK v3 together with v10 of the Sentry SDK, you must stay on@opentelemetry/apibelow 1.10.0 and OpenTelemetry SDK v2, or upgrade to v11.@opentelemetry/api1.10.0 only works with OpenTelemetry SDK v3 (@opentelemetry/core3.x,@opentelemetry/instrumentation0.300.x). The SDK v2 packages that v10 uses only support@opentelemetry/apibelow 1.10.0, and SDK v3 needs Node.js 22.15.0 or newer, while v10 supports Node.js 18 and newer. For this reason, v10 now limits@opentelemetry/apito<1.10.0, and the@opentelemetry/instrumentationand@opentelemetry/exporter-trace-otlp-httppeer dependencies of@sentry/node-coreto<0.300.0.If your app depends on
@opentelemetry/apidirectly, use a version below 1.10.0 (for example~1.9.1). With 1.10.0, your app and the Sentry SDK use different copies of the API, and the OpenTelemetry calls of your app do not see the tracer provider of the Sentry SDK.To use
@opentelemetry/api1.10.0 and OpenTelemetry SDK v3, upgrade to v11 of the Sentry SDK. For the upgrade steps, see the migration guide.
Other Changes
- feat(v10/core): Limit the body size of tunnel requests (#25560)
- fix(v10/astro): Upload source maps of Astro 7's prerender build (#25426)
- fix(v10/aws-serverless): End the
function.awsspan when a callback-style handler calls back (#25693) - fix(v10/browser): Apply
urlQueryParamsto event URLs, static span names and LCP URLs (#25297) - fix(v10/browser): Apply
urlQueryParamsto the Referer header (#25425) - fix(v10/browser): Skip profiling for unsampled active root spans (#25502)
- fix(v10/build): Make CJS re-exports visible to Node ESM imports (#25690)
- fix(v10/bundler-plugins): Check
globalThisbeforeglobalin the injected snippet (#25507) - fix(v10/bundler-plugins): Escape JSON in generated injection code (#25298)
- fix(v10/bundler-plugins): Inject the release only into chunks that load at startup (#25695)
- fix(v10/cloudflare): auto-instrument a re-exported default export (#25407)
- fix(v10/cloudflare): auto-instrument when wrangler
mainis a package (#25430) - fix(v10/cloudflare): Bind a default re-export with
varin the Vite transform (#25733) - fix(v10/cloudflare): keep default exports intact when auto-instrumenting (#25732)
- fix(v10/core): Don't mark http client spans as errors when the caller aborts (#25431)
- fix(v10/core): Record span outcomes for spans dropped when building a transaction (#25294)
- fix(v10/core): Stop treating previous_response_id as the OpenAI conversation id (#25432)
- fix(v10/hono): Expose runtime-specific SDK options (#25299)
- fix(v10/nextjs): Apply top-level
bundleSizeOptimizationsto webpack and Turbopack builds (#25261) - fix(v10/nextjs): Filter query parameters in request error context (#25433)
- fix(v10/nextjs): Only inject applicationKey metadata into browser bundles (#25567)
- fix(v10/nitro): Use forward slashes for resolved plugin paths on Windows (#25692)
- fix(v10/node): Don't mark fetch spans as errors when the caller aborts (#25273)
- fix(v10/node): Only read JavaScript and TypeScript source files in ContextLines (#25699)
- fix(v10/node): Read module versions from the isolated layouts of pnpm and Bun (#25698)
- fix(v10/nuxt): Delete public source maps before Nitro lists its public assets (#25284)
- fix(v10/nuxt): Keep sourcesContent in Nuxt 5 server source maps (#25499)
- fix(v10/nuxt): Skip 3xx/4xx Nuxt errors in the vue:error hook (#25427)
- fix(v10/react): Don't crash ErrorBoundary when
error.causeis not an Error (#25691) - fix(v10/react): Match React Router navigations against root routes only (#25694)
- fix(v10/react-router): Respect custom default integrations (#25434)
- fix(v10/remix): Respect custom default integrations (#25435)
- fix(v10/replay): Apply attribute masking to breadcrumb messages (#25697)
- fix(v10/server-utils): avoid quadratic SQL summary regex backtracking (#25257)
- fix(v10/server-utils): End Express layer spans when the client aborts (#25256)
- fix(v10/sveltekit): add op and origin to Kit's
sveltekit.endpointspan (#25429) - fix(v10/tanstackstart-react): Keep parametrized route names in Nitro 3 builds (#25316)
- fix(v10/tanstackstart-react): Rewrite source paths of split route modules (#25428)
Internal Changes
- ci(v10): Assign Junior backport PRs to the original author (#25529)
- ci(v10): Cache Playwright browsers on v10 (#25720)
- test(v10): Skip Vercel AI OTel multi-step test on Node 26.12+ (#25443)
- test(v10/cloudflare): Deflake flush-timeout Workflow test (#25182)
- test(v10/e2e): Pull Supabase images from GHCR (#25719)
- test(v10/e2e): Update TanStack Start build tooling (#25436)
- test(v10/e2e): Use Node 22.23.4 in E2E test apps (#25687)
- test(v10/sveltekit): Pin rollup to 4.64.5 (#25440)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 27.62 KB |
| @sentry/browser - with treesh... |