From ad9fe5028cc46cf7303023ffc9dc7ba315641b7c Mon Sep 17 00:00:00 2001 From: Muhammad Soban Javed Date: Tue, 21 May 2024 00:41:41 +0500 Subject: [PATCH] feat: add FrontendMonitoringMiddleware in lms and studio --- cms/envs/common.py | 1 + lms/envs/common.py | 1 + 2 files changed, 2 insertions(+) diff --git a/cms/envs/common.py b/cms/envs/common.py index 1a830a86870..2b175786e82 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -915,6 +915,7 @@ # Various monitoring middleware 'edx_django_utils.monitoring.CookieMonitoringMiddleware', 'edx_django_utils.monitoring.DeploymentMonitoringMiddleware', + 'edx_django_utils.monitoring.FrontendMonitoringMiddleware', 'edx_django_utils.monitoring.MonitoringMemoryMiddleware', # Before anything that looks at cookies, especially the session middleware diff --git a/lms/envs/common.py b/lms/envs/common.py index da2bfed626e..0c750b4c4bc 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -2256,6 +2256,7 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring 'edx_django_utils.monitoring.CodeOwnerMonitoringMiddleware', 'edx_django_utils.monitoring.CookieMonitoringMiddleware', 'edx_django_utils.monitoring.DeploymentMonitoringMiddleware', + 'edx_django_utils.monitoring.FrontendMonitoringMiddleware', # Before anything that looks at cookies, especially the session middleware 'openedx.core.djangoapps.cookie_metadata.middleware.CookieNameChange',