Skip to content

Discussion: should ignoreUrls and whitelistUrls affect XHR breadcrumbs? #579

Closed
@benvinegar

Description

@benvinegar

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 and whitelistUrls 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:

  • dedicated config option for breadcrumb URLs (could affect both XHRs and nav events)
  • a callback function for breadcrumbs (like shouldSendCallback) that allows you to mutate outbound data or cancel recording of an individual event

Thoughts?

cc @mattrobenolt @mitsuhiko

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions