Skip to content

feat(core)!: Remove sentry.sdk_meta.gen_ai.input.messages.original_length attribute - #22516

Merged
nicohrubec merged 1 commit into
feat/remove-stream-gen-ai-spans-flagfrom
feat/remove-enable-truncation-flag
Jul 29, 2026
Merged

feat(core)!: Remove sentry.sdk_meta.gen_ai.input.messages.original_length attribute#22516
nicohrubec merged 1 commit into
feat/remove-stream-gen-ai-spans-flagfrom
feat/remove-enable-truncation-flag

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Jul 22, 2026

Copy link
Copy Markdown
Member

Removes the internal sentry.sdk_meta.gen_ai.input.messages.original_length span attribute across @sentry/core and @sentry/server-utils. Truncation itself including the enableTruncation flag will be removed in a follow up.

Related to #21129

Comment thread packages/core/src/server-exports.ts Outdated
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.83 kB -0.05% -14 B 🔽
@sentry/browser - with treeshaking flags 28.04 kB -0.04% -10 B 🔽
@sentry/browser (incl. Tracing) 47.11 kB -0.03% -11 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 47.12 kB -0.03% -10 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.82 kB -0.03% -11 B 🔽
@sentry/browser (incl. Tracing, Replay) 86.42 kB -0.02% -12 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.85 kB -0.02% -9 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 91.14 kB -0.02% -13 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 103.78 kB -0.02% -12 B 🔽
@sentry/browser (incl. Feedback) 47.14 kB -0.03% -13 B 🔽
@sentry/browser (incl. sendFeedback) 34.67 kB -0.05% -14 B 🔽
@sentry/browser (incl. FeedbackAsync) 39.77 kB -0.04% -13 B 🔽
@sentry/browser (incl. Metrics) 30.9 kB -0.04% -11 B 🔽
@sentry/browser (incl. Logs) 31.13 kB -0.04% -12 B 🔽
@sentry/browser (incl. Metrics & Logs) 31.81 kB -0.04% -10 B 🔽
@sentry/react 31.62 kB -0.04% -10 B 🔽
@sentry/react (incl. Tracing) 49.34 kB -0.03% -10 B 🔽
@sentry/vue 34.75 kB -0.04% -12 B 🔽
@sentry/vue (incl. Tracing) 49.06 kB -0.04% -15 B 🔽
@sentry/svelte 29.86 kB -0.05% -13 B 🔽
CDN Bundle 31.88 kB -0.04% -10 B 🔽
CDN Bundle (incl. Tracing) 47.45 kB -0.04% -15 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.43 kB -0.03% -9 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 48.83 kB -0.03% -11 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 72.79 kB -0.02% -8 B 🔽
CDN Bundle (incl. Tracing, Replay) 85.1 kB -0.02% -10 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.39 kB -0.02% -11 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 90.86 kB -0.02% -12 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.17 kB -0.02% -13 B 🔽
CDN Bundle - uncompressed 95.07 kB -0.04% -38 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 142.29 kB -0.03% -38 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.78 kB -0.04% -38 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.27 kB -0.03% -38 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.54 kB -0.02% -38 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.55 kB -0.02% -38 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.51 kB -0.02% -38 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.25 kB -0.02% -38 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.21 kB -0.02% -38 B 🔽
@sentry/nextjs (client) 51.93 kB -0.02% -10 B 🔽
@sentry/sveltekit (client) 47.52 kB -0.03% -12 B 🔽
@sentry/core/server 79.59 kB -0.25% -197 B 🔽
@sentry/core/browser 51.6 kB -0.03% -12 B 🔽
@sentry/node 120.88 kB -0.16% -186 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 84.47 kB -0.02% -12 B 🔽
@sentry/aws-serverless 92.69 kB -0.02% -11 B 🔽
@sentry/cloudflare (withSentry) - minified 197.59 kB -0.11% -213 B 🔽
@sentry/cloudflare (withSentry) 485.74 kB -0.1% -444 B 🔽

View base workflow run

@nicohrubec
nicohrubec force-pushed the feat/remove-enable-truncation-flag branch from 9c38fef to e541815 Compare July 23, 2026 10:10
@nicohrubec
nicohrubec force-pushed the feat/remove-enable-truncation-flag branch from e541815 to 4fa02f8 Compare July 23, 2026 11:33
@nicohrubec nicohrubec changed the title feat(core)!: Remove enableTruncation flag and gen_ai text truncation feat(core)!: Remove sentry.sdk_meta.gen_ai.input.messages.original_length attribute Jul 23, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4fa02f8. Configure here.

@nicohrubec
nicohrubec marked this pull request as ready for review July 23, 2026 11:49
@nicohrubec
nicohrubec requested review from a team as code owners July 23, 2026 11:49
@nicohrubec
nicohrubec requested review from andreiborza and isaacs and removed request for a team July 23, 2026 11:49
@nicohrubec
nicohrubec force-pushed the feat/remove-enable-truncation-flag branch 2 times, most recently from d21d217 to e67bac8 Compare July 29, 2026 08:39
…ength` attribute

This internal SDK-meta span attribute only ever signaled how many gen_ai
input messages existed before truncation dropped some. It carries no
meaning for consumers on its own and is being removed ahead of the
truncation removal. Text truncation itself is unchanged by this commit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec
nicohrubec force-pushed the feat/remove-enable-truncation-flag branch from e67bac8 to e518d64 Compare July 29, 2026 08:46
@nicohrubec
nicohrubec merged commit b7fc4cf into develop Jul 29, 2026
271 checks passed
@nicohrubec
nicohrubec deleted the feat/remove-enable-truncation-flag branch July 29, 2026 09:48
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.

3 participants