From 4f75b50a90ae0f32a4604c1a454fc6e76e9a15e2 Mon Sep 17 00:00:00 2001 From: Alexander Pantiukhov Date: Wed, 13 May 2026 10:36:58 +0200 Subject: [PATCH 1/3] Filter ExceptionsManager.reportException duplicates in app-start init --- CHANGELOG.md | 1 + packages/core/ios/RNSentryStart.m | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cd616a599..bf9c39a749 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ ### Fixes +- Fix duplicate JS error reporting on iOS New Architecture when the native SDK is initialized early via `sentry.options.json` ("Capture App Start Errors"). The `ExceptionsManager.reportException` C++ wrapper filter is now applied in both init paths, matching the JS-init dedup added in `7.9.0` ([#6116](https://github.com/getsentry/sentry-react-native/issues/6116)) - Fix the issue with uploading iOS Debug Symbols in EAS Build when using pnpm ([#6076](https://github.com/getsentry/sentry-react-native/issues/6076)) - Improve frame delay collection performance by using sentry-java `getFramesDelay` API ([#6074](https://github.com/getsentry/sentry-react-native/pull/6074)) diff --git a/packages/core/ios/RNSentryStart.m b/packages/core/ios/RNSentryStart.m index 6763d2e072..6114f57f62 100644 --- a/packages/core/ios/RNSentryStart.m +++ b/packages/core/ios/RNSentryStart.m @@ -203,6 +203,14 @@ + (void)updateWithReactFinals:(SentryOptions *)options return nil; } + for (SentryException *exception in event.exceptions) { + if (nil != exception.value && + [exception.value rangeOfString:@"ExceptionsManager.reportException"].location + != NSNotFound) { + return nil; + } + } + [self setEventOriginTag:event]; if (userBeforeSend == nil) { return event; From f0288e39cb3494f3ffa2bb8baa2ab1972a6221ed Mon Sep 17 00:00:00 2001 From: Alexander Pantiukhov Date: Wed, 13 May 2026 11:08:06 +0200 Subject: [PATCH 2/3] fixed changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf9c39a749..dff38be93d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ ### Fixes -- Fix duplicate JS error reporting on iOS New Architecture when the native SDK is initialized early via `sentry.options.json` ("Capture App Start Errors"). The `ExceptionsManager.reportException` C++ wrapper filter is now applied in both init paths, matching the JS-init dedup added in `7.9.0` ([#6116](https://github.com/getsentry/sentry-react-native/issues/6116)) +- Fix duplicate JS error reporting on iOS New Architecture when the native SDK is initialized early via `sentry.options.json` ("Capture App Start Errors"). It's done by applying the `ExceptionsManager.reportException` C++ wrapper filter in both init paths ([#6145](https://github.com/getsentry/sentry-react-native/pulls/6145)) - Fix the issue with uploading iOS Debug Symbols in EAS Build when using pnpm ([#6076](https://github.com/getsentry/sentry-react-native/issues/6076)) - Improve frame delay collection performance by using sentry-java `getFramesDelay` API ([#6074](https://github.com/getsentry/sentry-react-native/pull/6074)) From 38415aea2735b25e8ddd1ae8795f0e85dc91837e Mon Sep 17 00:00:00 2001 From: Alexander Pantiukhov Date: Wed, 13 May 2026 15:43:28 +0200 Subject: [PATCH 3/3] docs: Move changelog entry to Unreleased and fix PR URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The original entry landed in the already-released 8.11.0 section and linked to /pulls/6145 instead of /pull/6145. Danger flagged the former. Move the entry under ## Unreleased → ### Fixes and correct the URL. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5212202497..6f3dac0d95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ ### Fixes +- Fix duplicate JS error reporting on iOS New Architecture when the native SDK is initialized early via `sentry.options.json` ("Capture App Start Errors"). It's done by applying the `ExceptionsManager.reportException` C++ wrapper filter in both init paths ([#6145](https://github.com/getsentry/sentry-react-native/pull/6145)) - Fix boolean options from `sentry.options.json` being ignored on Android when using `RNSentrySDK.init` ([#6130](https://github.com/getsentry/sentry-react-native/pull/6130)) ### Dependencies @@ -56,7 +57,6 @@ ### Fixes -- Fix duplicate JS error reporting on iOS New Architecture when the native SDK is initialized early via `sentry.options.json` ("Capture App Start Errors"). It's done by applying the `ExceptionsManager.reportException` C++ wrapper filter in both init paths ([#6145](https://github.com/getsentry/sentry-react-native/pulls/6145)) - Fix the issue with uploading iOS Debug Symbols in EAS Build when using pnpm ([#6076](https://github.com/getsentry/sentry-react-native/issues/6076)) - Improve frame delay collection performance by using sentry-java `getFramesDelay` API ([#6074](https://github.com/getsentry/sentry-react-native/pull/6074))