Title: thirdPartyErrorFilterIntegration mis-categorizing native frames in stacktrace · Issue #17674 · getsentry/sentry-javascript · GitHub
Open Graph Title: thirdPartyErrorFilterIntegration mis-categorizing native frames in stacktrace · Issue #17674 · getsentry/sentry-javascript
X Title: thirdPartyErrorFilterIntegration mis-categorizing native frames in stacktrace · Issue #17674 · 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/17674
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"thirdPartyErrorFilterIntegration mis-categorizing native frames in stacktrace","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\nSelf-hosted/on-premise\n\n### Which SDK are you using?\n\n@sentry/react\n\n### SDK Version\n\n10.11.0\n\n### Framework Version\n\nReact 18.2.0\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\nUsing `thirdPartyErrorFilterIntegration` with the `apply-tag-if-contains-third-party-frames` behaviour\n\n```\ncaptureConsoleIntegration({ levels: ['error'] }),\nthirdPartyErrorFilterIntegration({\n filterKeys: ['some-key'],\n behaviour: 'apply-tag-if-contains-third-party-frames',\n}),\n```\n\n### Steps to Reproduce\n\nThe following example\n\n```js\n Promise.allSettled([\n Promise.resolve(33),\n new Promise((resolve) => setTimeout(() => resolve(66), 0)),\n 99,\n Promise.reject(new Error('an error')),\n ]).then((values) => values.forEach((value) => console.error(value)))\n```\n\ncreates a stacktrace with a frame\n\n```json\n{\n \"function\": \"Array.forEach\",\n \"filename\": \"\u003canonymous>\",\n \"abs_path\": \"\u003canonymous>\",\n \"in_app\": true,\n \"data\": {\n \"client_in_app\": true\n }\n}\n```\n\nThis frame appears to cause the error as tagged with `third_party_code` as `true`. This is the only frame in the stacktrace not from our bundle - `thirdPartyErrorFilterIntegration` appears to be working for us correctly elsewhere i.e. stacktraces without frames from native code.\n\nI have seen similar mis-categorizations with `Promise.all` and `Promise.allSettled` so I believe it is any native frame.\n\n### Expected Result\n\nFrames for native code that do not cause an error should not set the `third_party_code` tag.\n\n### Actual Result\n\n`third_party_code` is `true`\n\n### Additional Context\n\n\u003csub>Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/md384","@type":"Person","name":"md384"},"datePublished":"2025-09-16T17:50:45Z","url":"https://github.com/getsentry/sentry-javascript/issues/17674"}
| 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:2dab7284-0438-b949-ef5f-d4306c105246 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D99C:2876DA:253257F:30BA19C:6B054F54 |
| html-safe-nonce | 2990968723c209b839d3fffed759daa458b04e38f4c058040338864690a13d9b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTlDOjI4NzZEQToyNTMyNTdGOjMwQkExOUM6NkIwNTRGNTQiLCJ2aXNpdG9yX2lkIjoiOTAxMTIxNTYzMDc3ODg0NzA2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f00546bd21afd763db295c2805f84cb244a42e9c2a919d1128b5b345e9e03b2a |
| hovercard-subject-tag | issue:3423209991 |
| 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/17674/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92fbd4e127e5ecde23680f7a422168da5759a9c6a4f3f3d5dc6cfdd1912f493d/getsentry/sentry-javascript/issues/17674 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92fbd4e127e5ecde23680f7a422168da5759a9c6a4f3f3d5dc6cfdd1912f493d/getsentry/sentry-javascript/issues/17674 |
| 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 | md384 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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