Title: linkedErrors limit is not applied to AggregateError / SuppressedError children · Issue #25836 · getsentry/sentry-javascript · GitHub
Open Graph Title: linkedErrors limit is not applied to AggregateError / SuppressedError children · Issue #25836 · getsentry/sentry-javascript
X Title: linkedErrors limit is not applied to AggregateError / SuppressedError children · Issue #25836 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25836
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"linkedErrors limit is not applied to AggregateError / SuppressedError children","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/node\n\n### SDK Version\n\n11.9.0 (also checked current `develop`)\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n```js\nconst Sentry = require('@sentry/node');\n\nSentry.init({\n dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0',\n // default linkedErrorsIntegration limit is 5\n});\n\nconst children = Array.from({ length: 20 }, (_, i) => new Error(`child-${i}`));\nSentry.captureException(new AggregateError(children, 'group'));\n```\n\n### Steps to Reproduce\n\n1. Capture an `AggregateError` whose `errors` array is longer than the linked-errors `limit` (default 5).\n2. Inspect `event.exception.values` (or the event in Sentry).\n\nThe same pattern applies to a long `SuppressedError` chain via the `error` / `suppressed` properties.\n\nIn `packages/core/src/utils/aggregate-errors.ts`, the `limit` check runs at the start of each recursive call, but the `AggregateError.errors` and `SuppressedError` loops still walk every child and prepend each one before that check can stop the walk. Cause chains via `key` (usually `cause`) do get capped.\n\nI opened https://github.com/getsentry/sentry-javascript/pull/25767 without an issue first and it was closed — filing here as requested before any further PR.\n\n### Expected Result\n\nAt most `limit + 1` exceptions in `event.exception.values` (the root plus up to `limit` linked ones), including when the extras come from `AggregateError.errors` or `SuppressedError`.\n\n### Actual Result\n\nEvery AggregateError child (and every SuppressedError sibling) is turned into an exception. With 20 children and the default limit of 5, you get far more than 6 values.\n\nHappy to open a PR once a maintainer confirms this is wanted.\n","author":{"url":"https://github.com/CheckPickerUpper","@type":"Person","name":"CheckPickerUpper"},"datePublished":"2026-10-28T15:44:51Z","url":"https://github.com/getsentry/sentry-javascript/issues/25836"}
| 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:9f264ea1-a35b-5389-4fc5-68f09b38118a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA88:3284B6:A6FF9:E32F8:6B042C5D |
| html-safe-nonce | 256d761e40b88d1b39b7bb2ca1d9b1702b2930d12384f1cddbf6dc24cd034d33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTg4OjMyODRCNjpBNkZGOTpFMzJGODo2QjA0MkM1RCIsInZpc2l0b3JfaWQiOiIxODM2MTU3Njg4MzA0OTA1MzA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6e4033a71cf5fc2c87c97b52eb02d271e8bf1dd2301dfa8e295c45fdce90fcab |
| hovercard-subject-tag | issue:6082356649 |
| 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/25836/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8ced49e14acda42e82b1af7c385504e3da914b748a10ebd539091620c5a2c97/getsentry/sentry-javascript/issues/25836 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8ced49e14acda42e82b1af7c385504e3da914b748a10ebd539091620c5a2c97/getsentry/sentry-javascript/issues/25836 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CheckPickerUpper |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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