From 73b8ec3a6937847d2b0b94bf080de2a0bbad5b00 Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Mon, 22 Jul 2024 16:14:08 +0000 Subject: [PATCH] fix: Try disabling Mako template instrumentation in New Relic [stg/edge] We'll deploy to prod if this looks OK. --- playbooks/roles/edxapp/templates/newrelic.ini.j2 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/playbooks/roles/edxapp/templates/newrelic.ini.j2 b/playbooks/roles/edxapp/templates/newrelic.ini.j2 index 515d5d0b9f8..5cf21120bf9 100644 --- a/playbooks/roles/edxapp/templates/newrelic.ini.j2 +++ b/playbooks/roles/edxapp/templates/newrelic.ini.j2 @@ -29,3 +29,17 @@ browser_monitoring.enabled=false browser_monitoring.auto_instrument=false browser_monitoring.attributes.enabled=false + +{% if COMMON_ENVIRONMENT == "stage" or COMMON_DEPLOYMENT == "edge" %} + +# Experiment 2024-07-22: See if instrumentation of Mako templates is +# related to the recursive uncaught error handling problem we're +# seeing in https://github.com/openedx/edx-platform/issues/35151 + +[import-hook:mako.runtime] +enabled = false + +[import-hook:mako.template] +enabled = false + +{% endif %}