Filtering adblocked requests

navels

Posted on
Aug 15 2022

Our application makes calls to segment.io that are blocked by ad blockers and we end up with "Failed to fetch" errors in raygun. We'd like to filter these out but it isn't clear to me how to do this using the various filter options.

Is it possible to filter based on the stacktrace of the error? That would be sufficient as there are references to "https://cdn.segment.com/analytics.js" in the stracktrace. Unfortunately the top-level failure message is just "Failed to fetch" and we don't want to filter all of those.


Sumitra

Raygun

Posted on
Aug 22 2022

Hi there,

Thank you for reaching out to us and for the patience.

You might be able to use our ignore3rdPartyErrors option to avoid errors from these libraries.

You can check out the docs here for more info before implementing - https://raygun.com/documentation/language-guides/javascript/crash-reporting/advanced-setup/#configuration-options

Kind regards,

Sumitra


Reply