Skip to content

Commit

Permalink
Ignore intermittent cloudwatch errors (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey800 committed Oct 31, 2023
1 parent b22cd74 commit 29c3061
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .happy/terraform/modules/cloudwatch-alarm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@ resource aws_cloudwatch_log_metric_filter frontend_uncaught_error {
pattern = join(" ", [
"\"com.amazon.rum.js_error_event\"",
# Errors that occur when fetching RUM credentials. Safe to ignore because
# this is due to the user's network environment.
# this is due to the user's network environment:
# https://github.com/aws-observability/aws-rum-web/issues/227#issuecomment-1252712017
"-\"CWR: Failed to retrieve Cognito identity\"",
"-\"CWR: Failed to retrieve credentials\"",
"-\"CWR: Failed to retrieve Cognito OpenId token\"",
"-\"CWR: Failed to retrieve credentials from STS\"",
# Below errors are safe to ignore because they occur intermittently and do
# not impact the user's abilty to use the napari hub
"-\"ResizeObserver loop\"",
"-\"Script error\"",
"-\"The provided `href`\"",
"-\"The request is not allowed by the user agent\"",
])
count = var.metrics_enabled ? 1 : 0
Expand Down

0 comments on commit 29c3061

Please sign in to comment.