Skip to content

fix(settings): Improve fetchLegalTerms and fetchConfig error capture#20097

Merged
dschom merged 1 commit intomainfrom
worktree-FXA-13133
Feb 25, 2026
Merged

fix(settings): Improve fetchLegalTerms and fetchConfig error capture#20097
dschom merged 1 commit intomainfrom
worktree-FXA-13133

Conversation

@dschom
Copy link
Copy Markdown
Contributor

@dschom dschom commented Feb 24, 2026

Because

  • We need more info about why this is failing

This pull request

  • Adds fetchDuration (ms) to the Sentry error.
  • Adds cancelled (AbortError detection) to the Sentry error.
  • Adds errorName to the Sentry error.

Issue that this pull request solves

Closes: FXA-13133 (Partial, see comments below)

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Depending on what we find, we may have to follow up.

@dschom dschom force-pushed the worktree-FXA-13133 branch 4 times, most recently from 7c570a9 to 7ec4e37 Compare February 24, 2026 16:57
@dschom dschom marked this pull request as ready for review February 24, 2026 22:19
@dschom dschom requested a review from a team as a code owner February 24, 2026 22:19
entrypoint: 'preferences',
cancelled: false,
errorName: 'Error',
fetchDuration: 1,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might introduce some flakiness, maybe assert any fetchDuration number.

…g with timing and cancellation info

Adds fetchDuration (ms), cancelled (AbortError detection), and errorName
to the Sentry captureException extra context so 'Load failed' errors are
easier to triage by cause and duration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dschom dschom force-pushed the worktree-FXA-13133 branch from 7ec4e37 to a60f4f7 Compare February 25, 2026 17:22
@dschom dschom merged commit 361d032 into main Feb 25, 2026
20 of 21 checks passed
@dschom dschom deleted the worktree-FXA-13133 branch February 25, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants