Skip to content

Add breadcrumbs filter option #672

Description

@skeggse

Right now, I'm filtering out some analytics xhrs from the breadcrumbs by using the dataCallback parameter:

functionfilterCrumbs(crumb){// For example.returncrumb.category!=='xhr'||!crumb.data.url.startsWith('https://example.com');}Raven.config({// ...dataCallback(payload){try{if(!payload.breadcrumbs)returnpayload;payload.breadcrumbs.values=payload.breadcrumbs.values.filter(filterCrumbs);}catch(err){// Don't block logging on xhr filtering.}returnpayload;}});

It would be convenient if there were a filterCrumbs option, or something like it - payload.breadcrumbs.values isn't explicitly documented, and as such it feels brittle.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions