From 42163946ebace8c898912f3e4d8fe7abefa55116 Mon Sep 17 00:00:00 2001 From: Pranav Date: Thu, 9 Apr 2026 23:12:44 -0700 Subject: [PATCH] fix: Ignore RoutingError in New Relic error reporting (#14030) Routing errors (404s) are expected in production and don't represent actionable issues. Reporting them to New Relic creates noise and makes it harder to spot real errors. Adds ActionController::RoutingError to the New Relic error_collector.ignore_errors list so these are no longer tracked as exceptions. --- config/newrelic.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/newrelic.yml b/config/newrelic.yml index e1482e4a1..921d6edfb 100644 --- a/config/newrelic.yml +++ b/config/newrelic.yml @@ -18,6 +18,9 @@ common: &default_settings distributed_tracing: enabled: true + error_collector: + ignore_errors: 'ActionController::RoutingError' + # To disable the agent regardless of other settings, uncomment the following: agent_enabled: <%= ENV['NEW_RELIC_LICENSE_KEY'].present? && ENV.fetch('NEW_RELIC_AGENT_ENABLED', true) %>