Skip to content

Releases

11.17.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 23 Nov 17:49

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_duration and browser.web_vital.lcp.element_render_delay. INP spans now carry browser.web_vital.inp.input_delay, browser.web_vital.inp.processing_duration and browser.web_vital.inp.presentation_delay. This shows which phase made an LCP or INP slow.

  • feat(core): Gate URL fragments behind urlQueryParams (#26753)

    The urlQueryParams option now also applies to URL fragments, since OAuth redirects and hash routing can put tokens there. key=value pairs in a fragment are filtered like query params, and the fragment is dropped when urlQueryParams is off. This covers url.full, url.fragment, request.url and 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 as http.server, not its own transaction. Without the MCP SDK's OpenTelemetry tracing, nothing changes.

  • feat(node): Add ClickHouse instrumentation (#26211)

    The new clickhouseIntegration creates database spans for @clickhouse/client and @clickhouse/client-web. It is exported from @sentry/node, @sentry/cloudflare and the other server SDKs.

  • feat(react-router, remix): Support sourcemaps.upload, injectDebugIds and delete

    @sentry/react-router and @sentry/remix now accept the sourcemaps.upload, sourcemaps.injectDebugIds and sourcemaps.delete options. In React Router, source maps you turned on yourself are no longer deleted unless you set delete: true, and release.create: false is now respected.

    Related PRs: #26607, #26332

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/import entry (#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/conventions to 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
Read more

11.16.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 20 Nov 14:00

Important Changes

  • docs(tanstackstart-react): Promote SDK status to stable (#26691)

    This release promotes the @sentry/tanstackstart-react SDK to stable. It supports @tanstack/react-start 1.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/solid now ships alpha support for Solid 2 under the @sentry/solid/solid2 entry 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.

    Related PRs: #26543, #26589, #26627, #26634, #26690

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 httpIntegration incoming-request options to node:http servers (#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) ...
Read more

11.15.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 19 Nov 15:54

Important Changes

  • feat(core): Continue MCP server traces from params._meta (#26308)

    MCP server spans now continue the caller's trace from the sentry-trace and baggage keys in a request's or notification's params._meta, so they connect to the agent that called the tool, including over stdio. Set propagateTraceparent: true to also continue from a W3C traceparent key. On Streamable HTTP, the MCP span is no longer a child of the http.server span 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.path on server function spans (#26495)

    Server function spans now set the file of the server function in code.file.path instead of tanstackstart.function.filename. The tanstackstart.function.id attribute 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-release meta tag (#26514)
  • feat(bun): Instrument modules in bun run on Bun 1.4.6 and later (#26515)
  • feat(bundler-plugins): Add sourcemaps.upload, injectDebugIds and delete (#26571)
  • feat(bundler-plugins): Export resolveReleaseName (#26500)
  • feat(core): Add sourcemaps.upload, injectDebugIds and delete to 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, injectDebugIds and delete (#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...
Read more

11.14.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 17 Nov 17:53

Important Changes

  • feat(browser): Add browserTracingCoreIntegration and standalone tracing integrations (#26259, #26260, #26261, #26262, #26273, #26276, #26497)

    browserTracingIntegration now sets up fetch and XHR request spans, linked traces, long tasks and resource spans through the standalone fetchTracingIntegration, xhrTracingIntegration, linkedTracesIntegration, longTasksIntegration and resourcesIntegration. Its behavior is unchanged. To ship less code, use browserTracingCoreIntegration, 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, instrumentNodeCron and instrumentNodeSchedule send 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.instrumentNodeCron is deprecated; use nodeCronIntegration instead.

  • fix(nuxt): Name the database system in db.system.name of db0 spans (#26285)

    Nitro database (db0) spans now set db.system.name to the database system of the connector's dialect (mysql, postgresql, sqlite or libsql), as the OpenTelemetry conventions define it, instead of the connector name. For example, spans of the mysql2 and planetscale connectors now report mysql, and spans of better-sqlite3 and cloudflare-d1 now report sqlite. Update saved queries, alerts and dashboards that filter on the connector names.

Other Changes

  • feat(cloudflare): Deprecate cacheClient option (#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.stringify output 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) ...
Read more

11.13.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 16 Nov 16:28

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: static attribute. This covers pages prerendered during vite build and 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 = false get 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 swr or isr route rule, the pageload now has the page.server_rendering.type: static attribute 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.scheme without colon and url.port as a number (#26284)

    HTTP spans that the SDK builds from a URL now send url.scheme without the trailing colon (https instead of https:) and url.port as a number instead of a string, as the Sentry conventions define them and as Node http.server spans already do. This changes http.server spans from @sentry/cloudflare, Bun.serve, Deno and Nitro, and outgoing node:http client spans. Update saved queries, alerts and dashboards that filter on url.scheme:"https:" or on url.port as a string.

  • feat(cloudflare): Continue the Cloudflare trace of the invocation (#25613)

    When tracing is not set up (no tracesSampleRate or tracesSampler), errors and logs from fetch, scheduled, queue and email handlers and from WorkerEntrypoint RPC 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_id of 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 awsIntegration now record prompts, system instructions, tool definitions and responses by default, as the other AI integrations do. This applies to the Converse, ConverseStream, InvokeModel and InvokeModelWithResponseStream commands.

    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 new awsIntegration options, which take precedence over dataCollection.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: true when no upload runs (#26281)
  • feat(bundler-plugins): Enable external source maps and delete them after upload in the esbuild plugin (#25648)
  • feat(cloudflare): Instrument trace and tailStream handlers (#26250)
  • feat(core): Add getTraceServerTimingHeader and isSharedCacheable (#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-Timing header 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/node startup 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 BrowserClient constructor (#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 url to 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/runtime provide 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...
Read more

11.12.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 10 Nov 16:03

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' or filesToDeleteAfterUpload globs:

    sentryVitePlugin({ org, project, authToken });

    The new sourcemaps.deleteSourcemapsAfterUpload option 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 use sourcemap: 'hidden' and want to drop your filesToDeleteAfterUpload globs.
    • 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 queueTracePropagationBindings to the producer bindings that should add trace data to plain-object message bodies. Consumers remove this data before your handler runs, and the queue.process span 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 call handleTunnelRequestIfMatched.

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 in url.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/conventions to 0.31.0 (#26160)
  • chore(deps): Bump @sentry/conventions to 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:fs for 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 ...
Read more

11.11.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 05 Nov 12:41

Important Changes

  • ref(cloudflare): Use the shared request handler wrapper (#25588)

    Cloudflare Workers now use the same request handler wrapper as Deno.serve and Bun.serve. Changes for Cloudflare users:

    • Request spans now set client.address from the CF-Connecting-IP header (or another forwarding header), as on the other runtimes. This follows dataCollection.userInfo, which is true by default. To leave it out, set dataCollection: { userInfo: false }.
    • Request spans now have the response header attributes, and events have the response context 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-Cookie header of a response, as on Deno and Bun.
    • Without AsyncLocalStorage (for example on Shopify Oxygen), events now also get the request URL and method.
  • feat(nestjs): Add an option to monitor every @Cron method (#25471)

    Set monitorCronJobs: true on nestIntegration() to send check-ins for every @Cron() method, without adding @SentryCron to each one. It's off by default. Each monitored job creates a monitor in Sentry, and monitors are billed. Use excludeCronJobs to skip jobs by slug. Methods that also have @SentryCron check in once, with the slug and options passed to @SentryCron.

  • feat(node): Add cronJobIntegration to monitor cron jobs (#25477)

    Add Sentry.cronJobIntegration() to integrations to send check-ins for every named CronJob of the cron package (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. Use excludeJobs to skip jobs by name. Sentry.cron.instrumentCron is deprecated; use cronJobIntegration instead.

  • fix(server-utils): Instrument @anthropic-ai/sdk 1.x and turn off its own OTel spans (#25750)

    The Anthropic integration now instruments @anthropic-ai/sdk 1.x. Since 0.134 the SDK also records its own OpenTelemetry spans, such as anthropic.messages.create, which duplicated Sentry's gen_ai spans. Once Sentry instruments the SDK, it sets ANTHROPIC_OPEN_TELEMETRY=false to turn those spans off. To keep them, set ANTHROPIC_OPEN_TELEMETRY=true or pass the openTelemetry option 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 cacheComponents shell, the pageload now has the page.server_rendering.type attribute. It is static if the whole page came from the cache, and partially_static if 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/integration entry for the Astro integration (#25726)
  • feat(bundler-plugins): Add sourcemaps.deleteSourcemapsAfterUpload and staged uploads (#25637)
  • feat(nestjs): Derive SentryCron monitor config from @Cron (#25013)
  • feat(nextjs): Add applicationKeyExcludeDependencies option (#25818)
  • feat(node): Add awsLambdaWebIntegration for 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 getSqlSpanName for SQL span names (#25929)
  • feat(server-utils): Move to new getSqlQueryAttributes helper 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.name on SQL spans (#25850)
  • feat(server-utils): Support @mistralai/mistralai v3 (#25827)
  • feat(solidstart): Export withSentry from @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 handleTunnelRequest form and reword the serveTunnelIntegration docs (#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/...
Read more

11.10.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 28 Oct 16:18

Important Changes

  • feat: Add a managed tunnel that the SDK derives from the DSN (#25199, #25200, #25783)

    Set tunnel: true in your browser Sentry.init call 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 export handleTunnelRequestIfMatched, handleTunnelRequest, isTunnelRequest and getTunnelPath:

    app.use((req, res, next) => Sentry.handleTunnelRequestIfMatched(req, res) ?? next());

    The request option of handleTunnelRequest is 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 now auto.queue.amqplib.*, and auto.kafkajs.* is now auto.queue.kafkajs.*.
    • auto.vercelai.channel is now auto.ai.vercelai.
    • auto.firebase.firestore is now auto.db.firebase.firestore, and auto.firebase.functions is now auto.function.firebase.
    • auto.aws.aws_sdk is now auto.{rpc,db,queue,ai}.aws_sdk, with the category from the span op.
    • auto.aws_lambda is now auto.function.aws_serverless.
    • auto.mcp.notification is now auto.function.mcp_server.notification.
    • auto.db.cloudflare.durable_object.sql is now auto.db.cloudflare.durable_object_sql.
    • auto.http.browser.{lcp,cls,inp} is now auto.ui.browser.{lcp,cls,inp}.

    If you have ignoreSpans rules, 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)

    bunServerIntegration now accepts the same options as denoServeIntegration: ignoreRequestBody, ignoreIncomingRequests, ignoreStaticAssets, spans, onSpanCreated, onSpanEnd, sessions and sessionFlushingDelayMS. The callbacks receive the web Request.

    Bun.serve now records a request session for each incoming request. Sessions are sent only when a release is set. To turn them off, set bunServerIntegration({ sessions: false }).

    ignoreStaticAssets defaults to true, so Bun.serve no longer creates spans for GET requests to common static assets such as favicon.ico, robots.txt or *.js files. To keep these spans, set bunServerIntegration({ ignoreStaticAssets: false }). Bun.serve spans also follow the client's tracing configuration by default, so the integration does not start spans when tracing is disabled. Errors thrown for OPTIONS and HEAD requests are now captured.

  • feat(bun): Inject debug IDs and upload source maps in sentryBunPlugin (#25670)

    sentryBunPlugin from @sentry/bun/plugin now accepts the same options as sentryEsbuildPlugin (org, project, authToken, release, sourcemaps, ...). When Bun.build writes source maps to outdir, 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 run sentry sourcemap inject and sentry sourcemap upload after the build.

    Like the other bundler plugins, sentryBunPlugin now sends build telemetry and injects the release it detects (for example, from git). To turn off telemetry, set telemetry: false.

  • feat(cloudflare): Add incoming request span options to httpServerIntegration (#25582)

    Cloudflare's httpServerIntegration now accepts ignoreIncomingRequests, ignoreStaticAssets, spans, onSpanCreated and onSpanEnd, with the same meaning as in the Node, Deno and Bun integrations. The callbacks receive the web Request.

    ignoreStaticAssets defaults to true, so workers no longer create spans for GET requests to common static assets such as favicon.ico, robots.txt or *.js files. To keep these spans, set httpServerIntegration({ ignoreStaticAssets: false }). Request spans also follow the client's tracing configuration by default, so the SDK does not start them when tracing is disabled. If ignoreRequestBody throws, the request no longer fails, and the SDK skips the body.

  • feat(cloudflare): Let users configure the channel integrations (#25584)

    When the @sentry/cloudflare/vite plugin bundles an instrumented package (for example pg or openai), the SDK adds the matching integration with its default options. @sentry/cloudflare now exports these integrations, so you can set their options, for example in instrument.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: true the SDK logs a warning.

  • feat(node): Add onSpanEnd to httpIntegration (#25581)

    httpIntegration and httpServerSpansIntegration now accept onSpanEnd, 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/core and @sentry/server-utils where they work on that runtime:

    • Node and Bun now export moduleMetadataIntegration, instrumentPostgresJsSql, instrumentCreateReactAgent, awsIntegration and the FlueOptions type. awsIntegration was already in their default integrations.
    • Deno and Cloudflare now export parameterize and instrumentStateGraphCompile.
    • Bun and Cloudflare now export the Log and LogSeverityLevel types.
    • Deno now exports fastifyIntegration, which was already in its default integrations.
  • 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' }). Your sentry.server.config loads 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.serve and Bun.serve (#25586, #25587)

    Deno.serve and Bun.serve now use the same request handler wrapper, which Cloudflare will also use. On both runtimes, errors in OPTIONS and HEAD requests now carry the request data, and the SDK keeps every Set-Cookie header 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.serve spans now follow the Sentry conventions for http.server spans, as on Node, Deno and Cloudflare:

    • url.template is now http.route. Routes without parameters also get http.route and the route source.
    • url.domain is now server.address.
    • A request to / gets the route source and the name GET /.
    • Spans also get user_agent.original and http.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_tool spans for Anthropic's beta.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 ...
Read more

10.78.0

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 28 Oct 16:58
  • 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_metric data 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

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 27 Oct 11:02

Important Changes

  • feat(v10/nextjs): Add a tunnel route handler that sends only the event payload to Sentry (#25559)

    The tunnelRoute option 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 your tunnelRoute option:

    // 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 tunnelRoute and no tunnel route handler, @sentry/nextjs now sends events from the browser with credentials: '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 browser Sentry.init call:

    // instrumentation-client.ts
    Sentry.init({
      transportOptions: { fetchOptions: { credentials: 'same-origin' } },
    });
  • fix(v10/deps)!: Limit @opentelemetry/api to <1.10.0 and the OpenTelemetry SDK to <3.0.0 (#25715)

    Breaking change

    If your app uses @opentelemetry/api 1.10.0 or OpenTelemetry SDK v3 together with v10 of the Sentry SDK, you must stay on @opentelemetry/api below 1.10.0 and OpenTelemetry SDK v2, or upgrade to v11.

    @opentelemetry/api 1.10.0 only works with OpenTelemetry SDK v3 (@opentelemetry/core 3.x, @opentelemetry/instrumentation 0.300.x). The SDK v2 packages that v10 uses only support @opentelemetry/api below 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/api to <1.10.0, and the @opentelemetry/instrumentation and @opentelemetry/exporter-trace-otlp-http peer dependencies of @sentry/node-core to <0.300.0.

    If your app depends on @opentelemetry/api directly, 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/api 1.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.aws span when a callback-style handler calls back (#25693)
  • fix(v10/browser): Apply urlQueryParams to event URLs, static span names and LCP URLs (#25297)
  • fix(v10/browser): Apply urlQueryParams to 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 globalThis before global in 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 main is a package (#25430)
  • fix(v10/cloudflare): Bind a default re-export with var in 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 bundleSizeOptimizations to 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.cause is 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.endpoint span (#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...
Read more