You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this configuration the ignoredMessages are getting ignored and not sent to rollbar however if I leave out the checkIgnore option they will be sent to rollbar. That's not what the docs say I think or am I misunderstanding them?
Using latest rollbar.js. I've tested several times back and forth to verify this.
var _rollbarConfig = {
accessToken: "redacted",
captureUncaught: true,
captureUnhandledRejections: true,
ignoredMessages: [
/All ins elements in the DOM with class=adsbygoogle already have ads in them/i,
/Uncaught TagError: adsbygoogle\.push\(\) error: All 'ins' elements in the DOM with class=adsbygoogle already have ads in them/i,
/Uncaught TagError: adsbygoogle\.push\(\) error: No slot size for availableWidth=0/i
],
checkIgnore: function(isUncaught, args, payload) {
return this.ignoredMessages.some(function(ignoredMessage) {
return ignoredMessage.test(args[0]);
});
},
payload: {
environment: "production"
}
};
The text was updated successfully, but these errors were encountered:
@waltjones Thanks however I tried with strings as well. This config will not block any exception:
var _rollbarConfig = {
accessToken: "...",
captureUncaught: true,
captureUnhandledRejections: true,
ignoredMessages: [
"All ins elements in the DOM with class=adsbygoogle already have ads in them",
"Uncaught TagError: adsbygoogle\.push\(\) error: All 'ins' elements in the DOM with class=adsbygoogle already have ads in them",
"Uncaught TagError: adsbygoogle\.push\(\) error: No slot size for availableWidth=0",
"Script error."
],
payload: {
environment: "production"
}
};
With this configuration the ignoredMessages are getting ignored and not sent to rollbar however if I leave out the checkIgnore option they will be sent to rollbar. That's not what the docs say I think or am I misunderstanding them?
Using latest rollbar.js. I've tested several times back and forth to verify this.
The text was updated successfully, but these errors were encountered: