Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach breadcrumbs in error link when mutation fails with errorPolicy: 'all' #470

Open
durchanek opened this issue Jun 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@durchanek
Copy link

durchanek commented Jun 20, 2024

I believe this has been mentioned in #420 When setting errorPolicy: 'all', no exception is raised but any error link set for apollo client will still execute with error details that can be sent to Sentry. This allows setting up Sentry integration globally, unlike throwing exceptions.
Unfortunately, it also means that error method of apollo-link-sentry is never called and breadcrumbs are not attached.

@durchanek durchanek changed the title Breadcrumbs are not attached when mutation fails with errorPolicy: 'all' Breadcrumbs are not attached in error link when mutation fails with errorPolicy: 'all' Jun 20, 2024
@spawnia spawnia changed the title Breadcrumbs are not attached in error link when mutation fails with errorPolicy: 'all' Attach breadcrumbs in error link when mutation fails with errorPolicy: 'all' Sep 6, 2024
@spawnia spawnia added the enhancement New feature or request label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants