You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if there is a way to only attach the network request as a breadcrumb if there are graphQLErrors or a networkError occurs, otherwise don't attach a breadcrumb.
Context: The main reason I want this is because I think adding a ton of sentry breadcrumbs is going to be a performance hit. I might be wrong?
Code
For example, I do this inside my onErrorLink but I would love to use this library instead to attach breadcrumbs only when a network/graphql error occurs.
The text was updated successfully, but these errors were encountered:
watadarkstar
changed the title
Question: Possible to only log when an error occurs?
Question: Possible to only attach breadcrumbs when an error occurs?
Mar 11, 2021
Description
I'm wondering if there is a way to only attach the network request as a breadcrumb if there are
graphQLErrors
or anetworkError
occurs, otherwise don't attach a breadcrumb.Context: The main reason I want this is because I think adding a ton of sentry breadcrumbs is going to be a performance hit. I might be wrong?
Code
For example, I do this inside my
onErrorLink
but I would love to use this library instead to attach breadcrumbs only when a network/graphql error occurs.The text was updated successfully, but these errors were encountered: