Skip to content

task(settings): Improve error handling for gql errors and network errors#18806

Merged
dschom merged 1 commit intomainfrom
improve-gql-breadcrumbs
May 7, 2025
Merged

task(settings): Improve error handling for gql errors and network errors#18806
dschom merged 1 commit intomainfrom
improve-gql-breadcrumbs

Conversation

@dschom
Copy link
Copy Markdown
Contributor

@dschom dschom commented May 2, 2025

Because

  • We were seeing network errors in sentry, but couldn't tell where they originated.

This pull request

  • Adds apollo links so we can get more visibility into gql queries
  • Adds a comment about how sentry records failed fetch events, since the Sentry UI is a little ambiguous

Issue that this pull request solves

Closes: FXA-10879 (Partially)

(This should help us determine what GQL are actually failing. The issue will still persist until the underlying problems are corrected.)

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)

Any other information that is important to this pull request.

@dschom dschom force-pushed the improve-gql-breadcrumbs branch 5 times, most recently from de9a71c to 2fdc5d3 Compare May 7, 2025 15:40
@dschom dschom marked this pull request as ready for review May 7, 2025 16:30
@dschom dschom requested a review from a team as a code owner May 7, 2025 16:30
Because:
- We were seeing network errors in sentry, but couldn't tell where they originated.

This Commit:
- Adds apollo links so we can get more visibility into gql queries
- Adds a comment about how sentry records failed fetch events, since the Sentry UI is a little ambiguous
@dschom dschom force-pushed the improve-gql-breadcrumbs branch from 2fdc5d3 to 92804ce Compare May 7, 2025 16:42
Copy link
Copy Markdown
Contributor

@vbudhram vbudhram left a comment

Choose a reason for hiding this comment

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

Seems reasonable 👍🏽

Copy link
Copy Markdown
Contributor

@vpomerleau vpomerleau left a comment

Choose a reason for hiding this comment

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

Thanks! This should be really helpful for investigating issues.

@dschom dschom merged commit 8920277 into main May 7, 2025
9 of 10 checks passed
@dschom dschom deleted the improve-gql-breadcrumbs branch May 7, 2025 16:56
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.

3 participants