Do you want to request a feature or report a bug?
This is a feature request.
Has someone had this problem before?
I haven't found anything similar in the issue tracker.
What is the current behavior?
At the moment, breadcrumbs are collected for e.g. all http requests, all console logs, etc.
What is the expected behavior?
I'm using the latest version 1.1.4.
The breadcrumb feature is really great, I love it!
However it would be really nice if we can specify some kind of filters for "tracking" the breadcrumb or not (e.g. some http requests should / must not be tracked, etc).
I think something like this should be enough:
Raven.config('https://xxx@sentry.io/123', {
autoBreadcrumbs: {
// pass a function that returns a boolean if you want to filter out some of them
http: (breadcrumb) => {
// filter out all GET methods
return breadcrumb.method !== GET
// filter out breadcrumbs matching a specific route
return !/\/login/.test(breadcrumb.url)
// and so on, depending on the available fields
// https://github.com/getsentry/raven-node/blob/fa3aa077410346530bbff82956fb9f022b0121d4/lib/breadcrumbs.js#L96-L99
},
// pass a boolean to simply enable/disable all breadcrumbs for console
console: true,
}
})
Thanks a lot for the help!