releases.shpreview

AI spans streamed outside transactions by default

v10.61.0

6 features3 fixesThis release6 featuresNew capabilities3 fixesBug fixesAI-tallied from the release notes

Important Changes

  • feat(core): Enable streamGenAiSpans by default (#21732)

    The SDK now extracts all gen_ai spans out of a transaction and sends them as v2 envelope items by default. This prevents gen_ai spans from being dropped when the transaction payload exceeds size limits. Because they are no longer constrained by transaction size limits, AI message data is also no longer truncated by default. Set enableTruncation: true on the respective AI integration to re-enable truncation. To keep the previous behavior, set streamGenAiSpans: false.

    Self-hosted Sentry users should opt out with streamGenAiSpans: false, since streamed gen_ai spans may not be ingested by their Sentry instance.

Other Changes

  • feat(cloudflare): Add batch, exec, and withSession D1 instrumentation (#21292)
  • feat(cloudflare): Instrument SQL API in sqlite durable objects (#21656)
  • feat(core): Add db.query.summary functionality (#21670)
  • feat(core): Add top-level Sentry.setAttribute(s) APIs (#21705)
  • fix(hono): Name transactions after the matched route handler (#21700)
  • fix(react-router): Bump peerDependencies for react-router 8 (#21762)
  • fix(replays): Record replay trace_ids with span streaming (#21714)
<details> <summary><strong>Internal Changes</strong></summary>
  • build: add rollup plugin for compile-time ESM/CJS code branching (#21715)
  • chore: Fix version bump for bundler plugin fixtures (#21707)
  • chore(node-integration-tests): Improve node test runner naming (#21685)
  • docs: Update contributing guide for E2E tests (#21763)
  • feat: Adopt bindTracingChannelToSpan across runtimes (#21642)
  • feat: Remove Otel from fsIntegration (#21654)
  • feat(deps): Bump http-proxy-middleware from 2.0.9 to 2.0.10 (#21709)
  • feat(server-utils): Add tracingChannel-to-span binding (#21641)
  • fix(tests): Add dedicated route for Hono query_string tests (#21731)
  • ref: Export SPAN_KIND from core and drop OTel SpanKind imports (#21668)
  • test: Make bundler plugins tests work after release
  • test: Remove duplicated test (#21699)
  • test: retry npm install on network hiccups (#21689)
  • test(cloudflare): Increase node count for memory tests (#21719)
  • test(e2e): Add sentry-sdk-init measure and marks (#21687)
  • test(e2e): Add more lighthouse react e2e test SDK init modes (#21711)
  • test(node): Add esm/cjs specific test runner utils (#21729)
  • test(node): Increase cron integration test timeout to 60s (#21704)
  • test(node): Streamline amqplib tests (#21723)
  • test(node): Update mysql tests for better coverage and correctness (#21684)
  • test(node): Use different ports for redis tests (#21727)
</details>

Bundle size 📦

PathSize
@sentry/browser26.83 KB
@sentry/browser - with treeshaking flags25.3 KB
@sentry/browser (incl. Tracing)44.89 KB
@sentry/browser (incl. Tracing + Span Streaming)46.6 KB
@sentry/browser (incl. Tracing, Profiling)49.57 KB
@sentry/browser (incl. Tracing, Replay)83.22 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags73.06 KB
@sentry/browser (incl. Tracing, Replay with Canvas)87.8 KB
@sentry/browser (incl. Tracing, Replay, Feedback)100.17 KB
@sentry/browser (incl. Feedback)43.61 KB
@sentry/browser (incl. sendFeedback)31.5 KB
@sentry/browser (incl. FeedbackAsync)36.52 KB
@sentry/browser (incl. Metrics)27.87 KB
@sentry/browser (incl. Logs)28.11 KB
@sentry/browser (incl. Metrics & Logs)28.78 KB
@sentry/react28.59 KB
@sentry/react (incl. Tracing)47.15 KB
@sentry/vue31.86 KB
@sentry/vue (incl. Tracing)46.71 KB
@sentry/svelte26.85 KB
CDN Bundle29.18 KB
CDN Bundle (incl. Tracing)46.77 KB
CDN Bundle (incl. Logs, Metrics)30.7 KB
CDN Bundle (incl. Tracing, Logs, Metrics)48.08 KB
CDN Bundle (incl. Replay, Logs, Metrics)69.12 KB
CDN Bundle (incl. Tracing, Replay)83.4 KB
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)84.65 KB
CDN Bundle (incl. Tracing, Replay, Feedback)89.05 KB
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)90.28 KB
CDN Bundle - uncompressed86.86 KB
CDN Bundle (incl. Tracing) - uncompressed141.63 KB
CDN Bundle (incl. Logs, Metrics) - uncompressed91.45 KB
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed145.51 KB
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed213.5 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed257.86 KB
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed261.72 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed271.24 KB
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed275.09 KB
@sentry/nextjs (client)49.48 KB
@sentry/sveltekit (client)45.28 KB
@sentry/core/server75.47 KB
@sentry/core/browser62.14 KB
@sentry/node-core60.07 KB
@sentry/node119.78 KB
@sentry/node/import (ESM hook with diagnostics-channel injection)68.31 KB
@sentry/node/light49.22 KB
@sentry/node - without tracing71.83 KB
@sentry/aws-serverless82.75 KB
@sentry/cloudflare (withSentry) - minified176.08 KB
@sentry/cloudflare (withSentry)435.78 KB

Fetched June 25, 2026