Skip to content

Investigate exposing sentry-cocoa's enableUIUpdateLinkFramesTracking option #7117

Todo

Description

@antonis

Context

sentry-cocoa 9.36.0 adds the experimental option options.experimental.enableUIUpdateLinkFramesTracking (getsentry/sentry-cocoa#9541). It is off by default. On iOS 18, tvOS 18 and visionOS 2 and later, it tracks slow and frozen frames, frames delay and time to display with the main run loop and a UIUpdateLink instead of a CADisplayLink, so an idle app isn't woken up for every frame.

RN can't set it today. RNSentryStart.m only forwards experimental options it lists explicitly.

Open question before exposing it

RN's manual TTID/TTFD relies on per-frame callbacks from Cocoa's SentryFramesTracker (RNSentryOnDrawReporter.m → RNSentryFramesTrackerListener). The new option deliberately stops reporting frames while the app is idle. We need to check that:

  • TTID/TTFD from <TimeToInitialDisplay>/<TimeToFullDisplay> still resolve, and are still accurate, with the option on
  • Slow and frozen frame and frames-delay measurements on JS-created spans still match
  • It works on Old and New Architecture

If those hold, forward it as _experiments.enableUIUpdateLinkFramesTracking (iOS only, a no-op on Android).

Activity

  1. self-assigned this
    on Nov 26, 2026
  2. linear-code commented on Nov 26, 2026

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions