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 %}