AI spans streamed outside transactions by default
v10.61.0
Important Changes
-
feat(core): Enable
streamGenAiSpansby default (#21732)The SDK now extracts all
gen_aispans 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. SetenableTruncation: trueon the respective AI integration to re-enable truncation. To keep the previous behavior, setstreamGenAiSpans: 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.summaryfunctionality (#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_idswith span streaming (#21714)
- 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
bindTracingChannelToSpanacross 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-initmeasure 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)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 26.83 KB |
| @sentry/browser - with treeshaking flags | 25.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 flags | 73.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/react | 28.59 KB |
| @sentry/react (incl. Tracing) | 47.15 KB |
| @sentry/vue | 31.86 KB |
| @sentry/vue (incl. Tracing) | 46.71 KB |
| @sentry/svelte | 26.85 KB |
| CDN Bundle | 29.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 - uncompressed | 86.86 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 141.63 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 91.45 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 145.51 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 213.5 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 257.86 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 261.72 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 271.24 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 275.09 KB |
| @sentry/nextjs (client) | 49.48 KB |
| @sentry/sveltekit (client) | 45.28 KB |
| @sentry/core/server | 75.47 KB |
| @sentry/core/browser | 62.14 KB |
| @sentry/node-core | 60.07 KB |
| @sentry/node | 119.78 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 68.31 KB |
| @sentry/node/light | 49.22 KB |
| @sentry/node - without tracing | 71.83 KB |
| @sentry/aws-serverless | 82.75 KB |
| @sentry/cloudflare (withSentry) - minified | 176.08 KB |
| @sentry/cloudflare (withSentry) | 435.78 KB |
Fetched June 25, 2026

