Skip to content

Disable Sentry TurboModuleContext integration #103906

Closed

Description

@mountiny

Problem

The Sentry React Native upgrade from 8.7 to 8.25 (#100711) made TurboModuleContext a default integration. At the start and end of every RNSentry call, it writes the module and method name to the Sentry scope, and on iOS every scope change is saved to a file on a background thread. Sentry calls RNSentry for frame data on every navigation and tap it tracks, so each call costs about 4.7 ms of CPU instead of 0.03 ms on the iOS simulator, and in return we only get a crash tag naming the Sentry method that was running.

Solution

setupSentry now passes integrations as a function that filters TurboModuleContext out of the default integrations and keeps every other default plus our own integrations. setupSentryIntegrationOrderTest is updated for the function form, with a new case that covers the filter.

PR

#103900

Issue OwnerCurrent Issue Owner: @arekm213

Activity

  1. added
    Daily
    Reviewing
    on Oct 13, 2026
  2. added
    Weekly
    and removed
    Daily
    on Oct 13, 2026
  3. arekm213 commented on Oct 13, 2026

    @arekm213
    Contributor

    getsentry/sentry-react-native#6886 - Issue reported to sentry here

  4. arekm213 commented on Oct 15, 2026

    @arekm213
    Contributor

    #103900 PR is ready for review

  5. arekm213 commented on Oct 15, 2026

    @arekm213
    Contributor

    I'm OOO from tomorrow until the end of next week. I've asked Software Mansion to keep an eye on this in the meantime, so someone should pick it up - i think there is not much more to do here

  6. GCyganek commented on Oct 15, 2026

    @GCyganek
    Contributor

    Hi, I will monitor this issue while Arek is OOO

  7. arekm213 commented on Oct 26, 2026

    @arekm213
    Contributor

    @mountiny I just checked and the Sentry team fixed this in release 8.32.0, so we could upgrade Sentry to this version and revert our workaround. I went through all the changes between 8.27 and 8.32 and it seems safe to update - changes are mostly iOS and Android crash fixes, and our patches still apply.
    What do you think, should we go for it or keep the workaround for now?

  8. removed
    Reviewing
    on Oct 26, 2026
  9. 6 remaining items

  10. added
    Reviewing
    Weekly
    and removed
    Daily
    on Oct 30, 2026
  11. arekm213 commented on Oct 30, 2026

    @arekm213
    Contributor

    Sentry upgrade PR is ready for review now

  12. added
    Daily
    and removed
    Reviewing
    Weekly
    on Nov 4, 2026
  13. melvin-bot commented on Nov 4, 2026

    @melvin-bot

    @mountiny @arekm213

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.31-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

  14. mountiny commented on Nov 9, 2026

    @mountiny
    ContributorAuthor

    I guess nothing more to do here, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions