Repository navigation
fix(mobile): bump @sentry/react-native to 8.36 to stop the expo-router Metro warning (APP-545) - #319
Conversation
…r Metro warning (APP-545) 8.31 deep-imported expo-router/build/global-state/router-store, which expo-router 58 no longer ships, so Metro warned on every bundle and expoRouterIntegration never got route names. 8.33 reads useNavigationContainerRef from expo-router instead. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…cessibility labels (APP-545) Sentry 8.35 restores touch breadcrumbs on React Native 0.88; their message is the tapped element's accessibility label, which carries workout and nutrition values and the account name. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Code review, round 1 (Opus 5.5, med): REVISE Blocker: Sentry 8.35+ restores touch and rage-tap breadcrumbs on RN 0.88 (getsentry/sentry-react-native#7013). Their message is the tapped element's accessibility label, which in Foundry carries workout and nutrition values and the account name; Suggestions (taken in the PR body): changelog claim corrected; navigation side effect and quota note; fingerprint/OTA wording; extra 'Not verified' items; Android Gradle plugin constant 6.23.0 → 6.27.0. Fix pushed in 45fe200: |
|
Code review, round 2 (Opus 5.5, med): PROCEED. The round-1 blocker is fixed: |
…po-router-warning # Conflicts: # packages/core/src/observability.test.ts # packages/core/src/observability.ts
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Conflict resolved (25 Nov). Merged
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Fixes APP-545
Risk: med. Native SDK bump (
@sentry/react-native8.31 → 8.36) that changes the runtime fingerprint.What
Metro warned on every bundle that
expo-router@58.0.32has an invalidexportsentry for./build/global-state/router-store. The cause is not expo-router (58.0.32 is its newest 58.0.x).@sentry/react-native@8.31.0deep-importsexpo-router/build/global-state/router-storeindist/js/tracing/expoRouterStore.js, a file expo-router 58 no longer ships. Sentry 8.33.0 readsuseNavigationContainerReffromexpo-routerinstead (getsentry/sentry-react-native#6923).@sentry/react-nativeto~8.36.0, the newest 8.x. It stays inexpo.install.exclude, so it was bumped by hand.@sentry/clinow resolves to the pinned 3.8.2. NoSentry.initoption used inapps/mobile/src/observability/sentry.tswas removed or renamed;jest.setup.tsneeded no change.Touch breadcrumbs: since 8.35 (#7013) touch and rage-tap breadcrumbs work again on React Native 0.88, and their message is an accessibility label that can carry workout and nutrition values. The Opus code review caught this and I added a guard here. After merging
main(25 Nov),mainalready dropsui.click,ui.input,touchandui.multiClickbreadcrumbs and sanitizes breadcrumbs merged into events, so my guard was dropped in favour of it. This PR now changes onlyapps/mobile/package.jsonandpnpm-lock.yaml.Other default-behaviour changes in 8.32–8.36, checked and without effect here: native Android logs under
enableLogs(8.34;logsOrigin: "js"keeps this off) andexpo/fetchdetection (8.34; no change with@expo/metro-runtime58.0.17). 8.34/8.35 otherwise add opt-in features. Android Sentry Gradle plugin constant moves 6.23.0 → 6.27.0; covered by the next Android build.Expected effect on telemetry: with 8.31 against expo-router 58 the store lookup failed, so
expoRouterIntegrationreturned early and was not registered. After this ships, navigation transactions (with route names, TTID and profiles) resume. Watch the Sentry quota (100% sampling on preview, 20% on production).route.urland route params stay gated bysendDefaultPii: false.Review
Code review by Opus 5.5 (read-only subthread): round 1 REVISE (touch breadcrumb privacy blocker; fixed by a guard, since superseded by the equivalent guard on
main), round 2 PROCEED on that guard. The native SDK binaries (Cocoa 9.35, Android 8.64) were not inspected by the reviewer either.Evidence
expo export --platform iosprinted the "however this file does not exist" warning repeatedly (resolved from@sentry+react-native@8.31.0).router-storeorhowever this file does not exist.pnpm verify: exit 0 (Vitest 123 files / 1026 tests, mobile Jest 132 suites / 1175 tests, lint, types, project checks), re-run after mergingmainon 25 Nov: 1191 Vitest, 1259 Jest.run-mobile.mjs up(Metro on :8091, backend check passed): signed in and reached Home with the five tabs; Metro log has no router-store warning.node apps/mobile/scripts/fingerprint.mjs) changed in every profile and platform:c5a1ec9c→23338ce29b2444be→0ac1f9c8dfc1e0f3→8b574a6bcac1a803→cca02ee66eb2029a→ea1e523050efa582→ea98b011After merge, OTA updates for this runtime wait for a matching store build on both channels, and so does every later change until that build ships. Needs Eric's card before merge.
Not verified
__DEV__, so no event payload was inspected and route names on navigation spans were not seen live. The check is the shipped code reading the exporteduseNavigationContainerRef(present in expo-router 58). Confirm route names on spans and the absence of touch breadcrumbs in Sentry after the next store build.Leftover work
WARN navigation.isFocused() was called during renderappears in Metro on Home; unrelated, not investigated.beforeBreadcrumb(the Cocoa binary may record button titles forUIControltaps);sanitizeEventonmainnow scrubs breadcrumbs merged into events. Confirm on a device build;enableUserInteractionBreadcrumbson Android is not set.sentry.test.tsthatenableUserInteractionTracingstays off, because enabling it would put labels in transaction names andsanitizeEventdoes not scrub those.🤖 Generated with Claude Code