Title: Implement Byte Size Limit and Oldest First Truncation for `gen_ai.*.messages` · Issue #17809 · getsentry/sentry-javascript · GitHub
Open Graph Title: Implement Byte Size Limit and Oldest First Truncation for `gen_ai.*.messages` · Issue #17809 · getsentry/sentry-javascript
X Title: Implement Byte Size Limit and Oldest First Truncation for `gen_ai.*.messages` · Issue #17809 · getsentry/sentry-javascript
Description: For gen_ai.* spans in the corresponding integrations in javascript, we will introduce a new hard limit for the size of the messages attribute (gen_ai.request.messages and gen_ai.output.messages). The limit should be a maximum size limit ...
Open Graph Description: For gen_ai.* spans in the corresponding integrations in javascript, we will introduce a new hard limit for the size of the messages attribute (gen_ai.request.messages and gen_ai.output.messages). T...
X Description: For gen_ai.* spans in the corresponding integrations in javascript, we will introduce a new hard limit for the size of the messages attribute (gen_ai.request.messages and gen_ai.output.messages). T...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17809
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement Byte Size Limit and Oldest First Truncation for `gen_ai.*.messages`","articleBody":"For gen_ai.\\* spans in the corresponding integrations in javascript, we will introduce a new hard limit for the size of the messages attribute (gen_ai.request.messages and gen_ai.output.messages). The limit should be a maximum size limit in bytes that ensures envelop size does not go over the limit that works for ingestion. This limit is to be defined. This should be implemented by counting bytes in the SDKs, and truncating the oldest messages first, until the list of messages fits inside the limit.\n\nUpdate both `vercel.ai.prompt` and `gen_ai.request.messages`\n\nLimit will be set for 20KB for now.","author":{"url":"https://github.com/RulaKhaled","@type":"Person","name":"RulaKhaled"},"datePublished":"2025-09-29T11:28:14Z","url":"https://github.com/getsentry/sentry-javascript/issues/17809"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8ed3dca5-1e2d-e0b4-3272-0816d5e59965 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3AA:96A74:5D797E:7C0341:6B04C33C |
| html-safe-nonce | 3eabf8cb38c292c714494a21ec01e8c3fcfb59748b79b390d26f90c2ea1a6996 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0FBOjk2QTc0OjVENzk3RTo3QzAzNDE6NkIwNEMzM0MiLCJ2aXNpdG9yX2lkIjoiMzExNzIzOTg3ODg1ODA5NzQ2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e57efe1e691ea9cb31ee69265160f09719aa34a996fdadbe4244bc7860de82f9 |
| hovercard-subject-tag | issue:3464521735 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/17809/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4207bbf111297593e08ae31d2f1b49c78ad49a4afad8aa6d6f8b5927afa87ace/getsentry/sentry-javascript/issues/17809 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4207bbf111297593e08ae31d2f1b49c78ad49a4afad8aa6d6f8b5927afa87ace/getsentry/sentry-javascript/issues/17809 |
| og:image:alt | For gen_ai.* spans in the corresponding integrations in javascript, we will introduce a new hard limit for the size of the messages attribute (gen_ai.request.messages and gen_ai.output.messages). T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RulaKhaled |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width