-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Discussion: should ignoreUrls
and whitelistUrls
affect XHR breadcrumbs?
#579
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
Comments
As the user, I'd prefer the callback for maximum flexibility. Regexes can't handle every scenario, and the URL isn't the only attribute we may want to examine. |
For the particular use case that led me to this issue, using ignoreUrls to not collect breadcrumbs from XHR requests to that URL would work well for me. But I agree that it's probably best to keep a distinction in the API between the filter applied to errors and filter applied to XHR breadcrumbs. For example, in my use case, I WANT to debug everything, but there's certain very frequent API calls that I want to prevent from taking up any of my 20 valuable breadcrumb slots. |
I am +1 on a callback for mutating/suppressing outbound xhr breadcrumbs. For our usecase, I'd like to (when available) attach a request id header that's sent back from our api. Currently, we emit a separate breadcrumb with that information, but it'd be nice to have a supported way to do that. |
A breadcrumb mutate/suppress callback could be really useful in another way too. You could use it to create really descriptive breadcrumbs by letting the implementer turn a Sentry-generated "ui.click button#buy-more-stuff-18462816" into "Clicked Buy Now button" |
We added a |
A user has pointed out that it is unfortunate that XHR breadcrumbs can include requests by 3rd-party scripts.
So, I'm thinking that the
ignoreUrls
andwhitelistUrls
config options can impact breadcrumb collection. Our docs encourage you to specify base URLs (e.g. domains), so I feel like this is appropriate ... but at the same time, I'm worried that overloading the meaning of these could also become painful. For example, you want to collect errors from your domain, but don't want to collect AJAX breadcrumbs to a reporting endpoint on your domain – if we go this way, there will be no distinguishing.Other ideas:
Thoughts?
cc @mattrobenolt @mitsuhiko
The text was updated successfully, but these errors were encountered: