To have a check on the errors being sent to Atatus, you can use the onBeforeErrorSend function. After inspecting the payload, if you wish to discard or abort the error send to Atatus, just return false value.

copy
icon/buttons/copy
atatus.onBeforeErrorSend(function (error) {
    // You can ignore the error message which contains a specific string
    if (error && error.message && error.message.indexOf("Debug Error") !== -1) {
        return false; // Return false here to abort the send
    }
    return true;
});
copy
icon/buttons/copy
atatus.onBeforeErrorSend(function (error) {
    // You can modify the error payload or filter out sensitive info.
    if (error && error.url) {
        error.url = 'https://www.my-custom-url.com';
    }
    return true; // Return false here to abort the send
});