From 7dd8a6702801888f89399ffd514f0b7f0ed92b38 Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Mon, 17 Jun 2024 11:29:38 -0400 Subject: [PATCH 1/2] feat: disable edxapp legacy browser in newrelic.ini.j2 --- playbooks/roles/edxapp/templates/newrelic.ini.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/edxapp/templates/newrelic.ini.j2 b/playbooks/roles/edxapp/templates/newrelic.ini.j2 index 26bb86bf2a3..515d5d0b9f8 100644 --- a/playbooks/roles/edxapp/templates/newrelic.ini.j2 +++ b/playbooks/roles/edxapp/templates/newrelic.ini.j2 @@ -26,4 +26,6 @@ # Transactions). This lets us do things like facet front end load time by # `course_id`. # -browser_monitoring.attributes.enabled=true +browser_monitoring.enabled=false +browser_monitoring.auto_instrument=false +browser_monitoring.attributes.enabled=false From 56b76f0fd7db6934e0ddcd257dd1d0e8aa6727d7 Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Mon, 17 Jun 2024 17:18:07 -0400 Subject: [PATCH 2/2] fixup! Update playbooks/roles/edxapp/templates/newrelic.ini.j2 Co-authored-by: Tim McCormack --- playbooks/roles/edxapp/templates/newrelic.ini.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/roles/edxapp/templates/newrelic.ini.j2 b/playbooks/roles/edxapp/templates/newrelic.ini.j2 index 515d5d0b9f8..7c3d3ad9c8c 100644 --- a/playbooks/roles/edxapp/templates/newrelic.ini.j2 +++ b/playbooks/roles/edxapp/templates/newrelic.ini.j2 @@ -26,6 +26,10 @@ # Transactions). This lets us do things like facet front end load time by # `course_id`. # +{% if COMMON_ENVIRONMENT == "stage" or COMMON_DEPLOYMENT == "edge" %} browser_monitoring.enabled=false browser_monitoring.auto_instrument=false browser_monitoring.attributes.enabled=false +{% else %} +browser_monitoring.attributes.enabled=true +{% endif %}