| 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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:c21b5647-ecb0-d924-d24b-a7ee3dd0444f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8DD0:3E863D:4E0E7:69E0C:6B04AE3D |
| html-safe-nonce | c968c21128b6da8eeedb6289346de84874206729898788a01467c7a230c1d4d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REQwOjNFODYzRDo0RTBFNzo2OUUwQzo2QjA0QUUzRCIsInZpc2l0b3JfaWQiOiIxOTY4NTU2ODkyNzkyMDczNzg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 677b5e2c920c36be56e3f05abca25ef4a5978f53bdceefc2b1242f6ac6695a84 |
| hovercard-subject-tag | pull_request:2910518270 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/17921/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/21479be484e628613cfcd68b4589ac9cb180821b2f62a4e6864f59041e09b63e/getsentry/sentry-javascript/pull/17921 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21479be484e628613cfcd68b4589ac9cb180821b2f62a4e6864f59041e09b63e/getsentry/sentry-javascript/pull/17921 |
| og:image:alt | Fixes: #17809
Implements message truncation logic that drops oldest messages first until the payload fits within the 20KB limit. If a single message exceeds the limit, its content is truncated from... |
| 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 | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| turbo-cache-control | no-cache |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/getsentry/sentry-javascript/pull/17921#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17921 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17921 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript |
| Reload | https://github.com/getsentry/sentry-javascript/pull/17921 |
| Reload | https://github.com/getsentry/sentry-javascript/pull/17921 |
| Reload | https://github.com/getsentry/sentry-javascript/pull/17921 |
| getsentry | https://github.com/getsentry |
| sentry-javascript | https://github.com/getsentry/sentry-javascript |
| Code | https://github.com/getsentry/sentry-javascript |
| Issues333 (333) | https://github.com/getsentry/sentry-javascript/issues |
| Pull requests52 (52) | https://github.com/getsentry/sentry-javascript/pulls |
| Discussions | https://github.com/getsentry/sentry-javascript/discussions |
| Actions | https://github.com/getsentry/sentry-javascript/actions |
| Security and quality7 (7) | https://github.com/getsentry/sentry-javascript/security |
| Insights | https://github.com/getsentry/sentry-javascript/insights |
| https://github.com/getsentry/sentry-javascript |
| RulaKhaled | https://github.com/RulaKhaled |
| develop | https://github.com/getsentry/sentry-javascript/tree/develop |
| genai-msg-limit | https://github.com/getsentry/sentry-javascript/tree/genai-msg-limit |
| Conversation | https://github.com/getsentry/sentry-javascript/pull/17921 |
| Commits10 (10) | https://github.com/getsentry/sentry-javascript/pull/17921/commits |
| Checks | https://github.com/getsentry/sentry-javascript/pull/17921/checks |
| Files changed | https://github.com/getsentry/sentry-javascript/pull/17921/files |
| feat(core): Truncate request messages in AI integrations | https://github.com/getsentry/sentry-javascript/pull/17921#top |
| RulaKhaled | https://github.com/RulaKhaled |
| develop | https://github.com/getsentry/sentry-javascript/tree/develop |
| genai-msg-limit | https://github.com/getsentry/sentry-javascript/tree/genai-msg-limit |
|
| https://github.com/RulaKhaled |
| RulaKhaled | https://github.com/RulaKhaled |
| Oct 13, 2025 | https://github.com/getsentry/sentry-javascript/pull/17921#issue-3510372050 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| #17809 | https://github.com/getsentry/sentry-javascript/issues/17809 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
|
| https://github.com/RulaKhaled |
| feat(core): Truncate request messages in AI integrations | https://github.com/getsentry/sentry-javascript/pull/17921/commits/0334ebf692353480d3f2777285f79be021a9a441 |
| 0334ebf | https://github.com/getsentry/sentry-javascript/pull/17921/commits/0334ebf692353480d3f2777285f79be021a9a441 |
| https://github.com/RulaKhaled |
| RulaKhaled | https://github.com/RulaKhaled |
|
Oct 13, 2025
| https://github.com/getsentry/sentry-javascript/pull/17921#ref-pullrequest-3484529395 |
|
feat(core): Add byte size limit and oldest first truncation for gen_ai messages
#17863
| https://github.com/getsentry/sentry-javascript/pull/17863 |
| https://github.com/apps/cursor |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17921 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| https://github.com/RulaKhaled |
| RulaKhaled | https://github.com/RulaKhaled |
| October 13, 2025 14:56 | https://github.com/getsentry/sentry-javascript/pull/17921#event-20249481254 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Oct 13, 2025 | https://github.com/getsentry/sentry-javascript/pull/17921#issuecomment-3397891815 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| View base workflow run | https://github.com/getsentry/sentry-javascript/actions/runs/18685070759 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Oct 13, 2025 | https://github.com/getsentry/sentry-javascript/pull/17921#issuecomment-3397898568 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| View base workflow run | https://github.com/getsentry/sentry-javascript/actions/runs/18685070759 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| RulaKhaled | https://github.com/RulaKhaled |
| October 13, 2025 17:46 | https://github.com/getsentry/sentry-javascript/pull/17921#commits-pushed-bf8e812 |
|
| https://github.com/RulaKhaled |
| update truncation | https://github.com/getsentry/sentry-javascript/pull/17921/commits/bf8e8124648fdc9b27c6b03007fa2c4d59d8fa22 |
| bf8e812 | https://github.com/getsentry/sentry-javascript/pull/17921/commits/bf8e8124648fdc9b27c6b03007fa2c4d59d8fa22 |
|
| https://github.com/RulaKhaled |
| lint yelling: | https://github.com/getsentry/sentry-javascript/pull/17921/commits/a1bd5360ede9dbec5a08c8b77706b73a8cffd113 |
| a1bd536 | https://github.com/getsentry/sentry-javascript/pull/17921/commits/a1bd5360ede9dbec5a08c8b77706b73a8cffd113 |
|
| https://github.com/RulaKhaled |
| update with nicer format | https://github.com/getsentry/sentry-javascript/pull/17921/commits/94a72d5af4f5648efa81fa6271a62a162a8e191d |
| 94a72d5 | https://github.com/getsentry/sentry-javascript/pull/17921/commits/94a72d5af4f5648efa81fa6271a62a162a8e191d |
| https://github.com/RulaKhaled |
| RulaKhaled | https://github.com/RulaKhaled |
| October 20, 2025 08:04 | https://github.com/getsentry/sentry-javascript/pull/17921#event-20374128626 |
|
| https://github.com/RulaKhaled |
| Merge branch 'develop' into genai-msg-limit | https://github.com/getsentry/sentry-javascript/pull/17921/commits/8aa24f8b569f952235c89c6c3869026924265c84 |
| 8aa24f8 | https://github.com/getsentry/sentry-javascript/pull/17921/commits/8aa24f8b569f952235c89c6c3869026924265c84 |
| https://github.com/RulaKhaled |
| RulaKhaled | https://github.com/RulaKhaled |
| JPeer264 | https://github.com/JPeer264 |
| andreiborza | https://github.com/andreiborza |
| October 20, 2025 11:04 | https://github.com/getsentry/sentry-javascript/pull/17921#event-20377706486 |
| RulaKhaled | https://github.com/RulaKhaled |
| October 21, 2025 14:36 | https://github.com/getsentry/sentry-javascript/pull/17921#commits-pushed-ea474d5 |
|
| https://github.com/RulaKhaled |
| Merge branch 'develop' into genai-msg-limit | https://github.com/getsentry/sentry-javascript/pull/17921/commits/ea474d522dc21fc2204b6d78adfda80cd41abd30 |
| ea474d5 | https://github.com/getsentry/sentry-javascript/pull/17921/commits/ea474d522dc21fc2204b6d78adfda80cd41abd30 |
|
| https://github.com/RulaKhaled |
| Merge branch 'develop' into genai-msg-limit | https://github.com/getsentry/sentry-javascript/pull/17921/commits/0ef32bf5a4ca56e4a9ff1a444ac0dfd3a1b77e2e |
| 0ef32bf | https://github.com/getsentry/sentry-javascript/pull/17921/commits/0ef32bf5a4ca56e4a9ff1a444ac0dfd3a1b77e2e |
| https://github.com/JPeer264 |
| JPeer264 | https://github.com/JPeer264 |
|
Oct 21, 2025
| https://github.com/getsentry/sentry-javascript/pull/17921#pullrequestreview-3361097635 |
|
View reviewed changes
| https://github.com/getsentry/sentry-javascript/pull/17921/files/0ef32bf5a4ca56e4a9ff1a444ac0dfd3a1b77e2e |
| packages/core/src/utils/google-genai/index.ts | https://github.com/getsentry/sentry-javascript/pull/17921/files/0ef32bf5a4ca56e4a9ff1a444ac0dfd3a1b77e2e#diff-d4c60558e68402a5f30ae48cd06b846fcbb674cc59a040dc07dfa4fe09b96820 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| packages/core/src/utils/vercel-ai/index.ts | https://github.com/getsentry/sentry-javascript/pull/17921/files/0ef32bf5a4ca56e4a9ff1a444ac0dfd3a1b77e2e#diff-c1d16200c7a833bf40d483215aa6e1e022ddf29ba3a287117da4cf474cde94d5 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| packages/core/src/utils/ai/messageTruncation.ts | https://github.com/getsentry/sentry-javascript/pull/17921/files/0ef32bf5a4ca56e4a9ff1a444ac0dfd3a1b77e2e#diff-4d4852fafebd4757cfd5c265e5f2cd1ee63842a1e93e6c6f0e15ef712c8319d1 |
| JPeer264 | https://github.com/JPeer264 |
| Oct 21, 2025 | https://github.com/getsentry/sentry-javascript/pull/17921#discussion_r2448562128 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| RulaKhaled | https://github.com/RulaKhaled |
| Oct 21, 2025 | https://github.com/getsentry/sentry-javascript/pull/17921#discussion_r2448591102 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder | https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| JPeer264 | https://github.com/JPeer264 |
| Oct 21, 2025 | https://github.com/getsentry/sentry-javascript/pull/17921#discussion_r2448654221 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder | https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
|
| https://github.com/RulaKhaled |
| refactor duplicate code | https://github.com/getsentry/sentry-javascript/pull/17921/commits/8faecc8510a58ede90efbbf9227924ec014d5ffb |
| 8faecc8 | https://github.com/getsentry/sentry-javascript/pull/17921/commits/8faecc8510a58ede90efbbf9227924ec014d5ffb |
| https://github.com/RulaKhaled |
| RulaKhaled | https://github.com/RulaKhaled |
| JPeer264 | https://github.com/JPeer264 |
| October 21, 2025 14:49 | https://github.com/getsentry/sentry-javascript/pull/17921#event-20407217691 |
| https://github.com/JPeer264 |
| JPeer264 | https://github.com/JPeer264 |
|
Oct 21, 2025
| https://github.com/getsentry/sentry-javascript/pull/17921#pullrequestreview-3361244818 |
|
View reviewed changes
| https://github.com/getsentry/sentry-javascript/pull/17921/files/8faecc8510a58ede90efbbf9227924ec014d5ffb |
| JPeer264 | https://github.com/JPeer264 |
| https://github.com/getsentry/sentry-javascript/pull/17921#pullrequestreview-3361244818 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| RulaKhaled | https://github.com/RulaKhaled |
| October 21, 2025 17:33 | https://github.com/getsentry/sentry-javascript/pull/17921#commits-pushed-aa64b94 |
|
| https://github.com/RulaKhaled |
| handle stringified objects too | https://github.com/getsentry/sentry-javascript/pull/17921/commits/aa64b94e746a1ce7664e49fa8056de6090a5c581 |
| aa64b94 | https://github.com/getsentry/sentry-javascript/pull/17921/commits/aa64b94e746a1ce7664e49fa8056de6090a5c581 |
|
| https://github.com/RulaKhaled |
| fix test | https://github.com/getsentry/sentry-javascript/pull/17921/commits/eda8ec00ec7c64b493d5033731cacf7e699be443 |
| eda8ec0 | https://github.com/getsentry/sentry-javascript/pull/17921/commits/eda8ec00ec7c64b493d5033731cacf7e699be443 |
| https://github.com/apps/cursor |
| cursor | https://github.com/apps/cursor |
|
Oct 21, 2025
| https://github.com/getsentry/sentry-javascript/pull/17921#pullrequestreview-3361532735 |
|
View reviewed changes
| https://github.com/getsentry/sentry-javascript/pull/17921/files/eda8ec00ec7c64b493d5033731cacf7e699be443 |
| packages/core/src/utils/ai/utils.ts | https://github.com/getsentry/sentry-javascript/pull/17921/files/eda8ec00ec7c64b493d5033731cacf7e699be443#diff-65ac0045cf1a4ea020b0b85805f0d0c5353be011540c5a8f792113de774a69cf |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
| https://github.com/RulaKhaled |
| RulaKhaled | https://github.com/RulaKhaled |
| 718a3ea | https://github.com/getsentry/sentry-javascript/commit/718a3eab491068a32c2b8d2eb2794699330a8336 |
| Oct 21, 2025 | https://github.com/getsentry/sentry-javascript/pull/17921#event-20409100359 |
| https://github.com/RulaKhaled |
| RulaKhaled | https://github.com/RulaKhaled |
| October 21, 2025 16:08 | https://github.com/getsentry/sentry-javascript/pull/17921#event-20409101053 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
Oct 24, 2025
| https://github.com/getsentry/sentry-javascript/pull/17921#ref-issue-3464521735 |
|
Implement Byte Size Limit and Oldest First Truncation for gen_ai.*.messages
#17809
| https://github.com/getsentry/sentry-javascript/issues/17809 |
| https://github.co/hiddenchars |
| https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17921 |
|
| https://github.com/apps/cursor |
|
cursor[bot]
| https://github.com/apps/cursor |
|
| https://github.com/getsentry/sentry-javascript/pull/17921/files/eda8ec00ec7c64b493d5033731cacf7e699be443 |
|
| https://github.com/JPeer264 |
|
JPeer264
| https://github.com/JPeer264 |
|
| https://github.com/getsentry/sentry-javascript/pull/17921/files/8faecc8510a58ede90efbbf9227924ec014d5ffb |
|
| https://github.com/andreiborza |
|
andreiborza
| https://github.com/andreiborza |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
|
Implement Byte Size Limit and Oldest First Truncation for gen_ai.*.messages
| https://github.com/getsentry/sentry-javascript/issues/17809 |
| Please reload this page | https://github.com/getsentry/sentry-javascript/pull/17921 |
|
| https://github.com/RulaKhaled |
|
| https://github.com/JPeer264 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |