"com.amazon.rum.js_error_event" -"CWR: Failed to retrieve Cognito identity" -"CWR: Failed to retrieve credentials" -"ResizeObserver loop" -"Script error" -"The provided `href`" -"The request is not allowed by the user agent"
Tested in dev-shared with artificial errors created from the frontend:
The first 3 buttons are all known errors that are filtered while the last one is not. Clicking on any of the first 3 buttons correctly reports in RUM:
But it does not trigger the alert. However, clicking on the last button will trigger the alert:
Description
Adds a metric filter for RUM error events so that the uncaught error doesn't get triggered for errors that we can safely ignore.
Demos
The pattern for the filter can be verified using the AWS cli:
Tested in
dev-shared
with artificial errors created from the frontend:The first 3 buttons are all known errors that are filtered while the last one is not. Clicking on any of the first 3 buttons correctly reports in RUM:
But it does not trigger the alert. However, clicking on the last button will trigger the alert: