Skip to content

fix(observability): keep accessible names out of Sentry breadcrumbs (APP-675) - #324

Merged
AppElent merged 1 commit into
mainfrom
claude/project-thread-kfwel8
Nov 23, 2026
Merged

AppElent merged 1 commit into
mainfrom
claude/project-thread-kfwel8

Conversation

@AppElent

Copy link
Copy Markdown
Owner

Requested by Eric · project thread

Fixes APP-675

Risk: low. A privacy filter in packages/core observability plus tests: no UI, no native code, and the runtime fingerprint stays the same.

What

  • sanitizeBreadcrumb now drops interaction breadcrumbs:

    • ui.click and ui.input on the web, whose message is the element's aria-label, title or alt.
    • touch and ui.multiClick on mobile, whose message is the accessibility label.

    Foundry's labels carry workout and nutrition values and the account name.

  • sanitizeEvent now runs every breadcrumb on an event through sanitizeBreadcrumb. This covers breadcrumbs that never passed beforeBreadcrumb. On mobile, the native iOS and Android SDKs add their own breadcrumbs, and their native beforeBreadcrumb only filters DSN and dev-server requests (checked in @sentry/react-native 8.31 RNSentryStart.m / RNSentryStart.java).

  • A mobile test checks that enableUserInteractionTracing stays unset. If it were set, transactions would be named after accessibility labels.

  • This overlaps with the guard in fix(mobile): bump @sentry/react-native to 8.36 to stop the expo-router Metro warning (APP-545) #319 (APP-545, which waits for the next store build). fix(mobile): bump @sentry/react-native to 8.36 to stop the expo-router Metro warning (APP-545) #319 resolves the conflict by taking main, because this change covers touch and ui.multiClick too.

Evidence

  • Web ui.click and ui.input are dropped: new core test drops interaction breadcrumbs, whose messages are accessible names.
  • Native and other merged breadcrumbs are sanitized: new core test sanitizes breadcrumbs merged into an event after beforeBreadcrumb.
  • enableUserInteractionTracing stays off: apps/mobile/src/observability/sentry.test.ts.
  • pnpm verify:lint, pnpm verify:types and pnpm test (1029 tests) pass. Mobile jest src/observability passes (24 tests).
  • Native: native crash events that never reach JS keep native-only breadcrumbs. Those are system, lifecycle and network events with no element labels, because RN views have no UIControl targets or Android resource IDs. They are not filtered here.

Leftover work

  • After the deploy, confirm in Sentry production that new web events carry no ui.click breadcrumbs.

Generated by Claude Code

…readcrumbs (APP-675)

Web `ui.click` and `ui.input` breadcrumbs name the element by its
aria-label, title or alt text, and mobile `touch` and `ui.multiClick`
breadcrumbs by its accessibility label. Ours carry workout and nutrition
values and the account name, so sanitizeBreadcrumb now drops all four.

Breadcrumbs that reach an event without passing beforeBreadcrumb (the
native SDK's own on mobile) now get the same pass in sanitizeEvent.

A mobile test keeps enableUserInteractionTracing off, since it would name
transactions after accessibility labels. JS-only; fingerprint unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jqBsscJjfAkJJuMxQx63J
@AppElent AppElent added the blast-radius:low Copy, styling, small fixes, tests, docs. Green CI and self-check label Nov 23, 2026
@AppElent AppElent self-assigned this Nov 23, 2026
@AppElent
AppElent marked this pull request as ready for review November 23, 2026 21:23
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-23T21:23:29.928987Z
We couldn’t complete this review. Comment @codex review to try again.
a20edd6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@AppElent
AppElent merged commit 61c4860 into main Nov 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast-radius:low Copy, styling, small fixes, tests, docs. Green CI and self-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants