Skip to content

feat(core): Automatically disable truncation when span streaming is enabled in Vercel AI integration#20232

Open
andreiborza wants to merge 3 commits intonh/vercel-enable-truncationfrom
ab/vercelai-auto-disable-truncation-streaming
Open

feat(core): Automatically disable truncation when span streaming is enabled in Vercel AI integration#20232
andreiborza wants to merge 3 commits intonh/vercel-enable-truncationfrom
ab/vercelai-auto-disable-truncation-streaming

Conversation

@andreiborza
Copy link
Copy Markdown
Member

@andreiborza andreiborza commented Apr 11, 2026

When span streaming is enabled, the enableTruncation option now defaults
to false unless the user has explicitly set it.

Should be merged after: #20195

Closes: #20226

…nabled in Vercel AI integration

When span streaming is enabled, the `enableTruncation` option now defaults
to `false` unless the user has explicitly set it.

Closes: #20226
@andreiborza andreiborza requested a review from nicohrubec April 11, 2026 17:36
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 11, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Core

  • Automatically disable truncation when span streaming is enabled in Vercel AI integration by andreiborza in #20232
  • Add enableTruncation option to Vercel AI integration by nicohrubec in #20195
  • Add enableTruncation option to OpenAI integration by andreiborza in #20167
  • Export a reusable function to add tracing headers by JPeer264 in #20076

Other

  • (deps) Bump defu from 6.1.4 to 6.1.6 by dependabot in #20104

Internal Changes 🔧

  • (bugbot) Add rules to flag test-flake-provoking patterns by Lms24 in #20192
  • (size-limit) Bump failing size limit scenario by Lms24 in #20186

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.72 kB added added
@sentry/browser - with treeshaking flags 24.21 kB added added
@sentry/browser (incl. Tracing) 42.73 kB added added
@sentry/browser (incl. Tracing, Profiling) 47.35 kB added added
@sentry/browser (incl. Tracing, Replay) 81.54 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 71.11 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 86.25 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 98.45 kB added added
@sentry/browser (incl. Feedback) 42.51 kB added added
@sentry/browser (incl. sendFeedback) 30.39 kB added added
@sentry/browser (incl. FeedbackAsync) 35.38 kB added added
@sentry/browser (incl. Metrics) 27.04 kB added added
@sentry/browser (incl. Logs) 27.18 kB added added
@sentry/browser (incl. Metrics & Logs) 27.86 kB added added
@sentry/react 27.48 kB added added
@sentry/react (incl. Tracing) 45.05 kB added added
@sentry/vue 30.56 kB added added
@sentry/vue (incl. Tracing) 44.59 kB added added
@sentry/svelte 25.74 kB added added
CDN Bundle 28.41 kB added added
CDN Bundle (incl. Tracing) 43.75 kB added added
CDN Bundle (incl. Logs, Metrics) 29.78 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 44.83 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 68.59 kB added added
CDN Bundle (incl. Tracing, Replay) 80.64 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 81.66 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 86.17 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 87.2 kB added added
CDN Bundle - uncompressed 82.99 kB added added
CDN Bundle (incl. Tracing) - uncompressed 129.77 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 87.14 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 133.19 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 210.12 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 246.65 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 250.05 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 259.56 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 262.95 kB added added
@sentry/nextjs (client) 47.47 kB added added
@sentry/sveltekit (client) 43.2 kB added added
@sentry/node-core 57.86 kB added added
@sentry/node 174.9 kB added added
@sentry/node - without tracing 97.97 kB added added
@sentry/aws-serverless 115.22 kB added added

@github-actions
Copy link
Copy Markdown
Contributor

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 8,955 - - added
GET With Sentry 1,779 20% - added
GET With Sentry (error only) 6,139 69% - added
POST Baseline 1,197 - - added
POST With Sentry 596 50% - added
POST With Sentry (error only) 1,045 87% - added
MYSQL Baseline 3,240 - - added
MYSQL With Sentry 467 14% - added
MYSQL With Sentry (error only) 2,642 82% - added

@andreiborza andreiborza requested a review from mydea April 12, 2026 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant