From d8675f8a0683355b57a813e04acbfca4f04712d4 Mon Sep 17 00:00:00 2001 From: Muhammad Soban Javed Date: Thu, 23 May 2024 16:29:59 +0500 Subject: [PATCH] feat: add FrontendMonitoringMiddleware in lms and studio (#34823) * feat: add FrontendMonitoringMiddleware in lms and studio * chore: upgrade edx-django-utils to 5.14.1 --- cms/envs/common.py | 1 + lms/envs/common.py | 1 + requirements/edx/base.txt | 2 +- requirements/edx/development.txt | 2 +- requirements/edx/doc.txt | 2 +- requirements/edx/kernel.in | 4 ++-- requirements/edx/testing.txt | 2 +- scripts/user_retirement/requirements/base.txt | 2 +- scripts/user_retirement/requirements/testing.txt | 2 +- 9 files changed, 10 insertions(+), 8 deletions(-) diff --git a/cms/envs/common.py b/cms/envs/common.py index a46fe745e819..45e3ccb42ce7 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 3f18c96acf92..a65a7ab195ce 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', diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 66d3d0f13d41..3fabc2b7af74 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -436,7 +436,7 @@ edx-django-release-util==1.4.0 # edxval edx-django-sites-extensions==4.2.0 # via -r requirements/edx/kernel.in -edx-django-utils==5.13.0 +edx-django-utils==5.14.1 # via # -r requirements/edx/kernel.in # django-config-models diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index 13b959fa4e48..156d386bcbb4 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -713,7 +713,7 @@ edx-django-sites-extensions==4.2.0 # via # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt -edx-django-utils==5.13.0 +edx-django-utils==5.14.1 # via # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index f968e6954ea8..30cbdfa5506d 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -510,7 +510,7 @@ edx-django-release-util==1.4.0 # edxval edx-django-sites-extensions==4.2.0 # via -r requirements/edx/base.txt -edx-django-utils==5.13.0 +edx-django-utils==5.14.1 # via # -r requirements/edx/base.txt # django-config-models diff --git a/requirements/edx/kernel.in b/requirements/edx/kernel.in index b683b31895f2..9321ca67ff31 100644 --- a/requirements/edx/kernel.in +++ b/requirements/edx/kernel.in @@ -68,8 +68,8 @@ edx-completion edx-django-release-util # Release utils for the edx release pipeline edx-django-sites-extensions edx-codejail -# edx-django-utils 5.4.0 adds CSP middleware -edx-django-utils>=5.4.0 # Utilities for cache, monitoring, and plugins +# edx-django-utils 5.14.1 adds FrontendMonitoringMiddleware +edx-django-utils>=5.14.1 # Utilities for cache, monitoring, and plugins edx-drf-extensions edx-enterprise # edx-event-bus-kafka 5.6.0 adds support for putting client ids on event producers/consumers diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 13e13fe49b28..8a7e9d45193f 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -543,7 +543,7 @@ edx-django-release-util==1.4.0 # edxval edx-django-sites-extensions==4.2.0 # via -r requirements/edx/base.txt -edx-django-utils==5.13.0 +edx-django-utils==5.14.1 # via # -r requirements/edx/base.txt # django-config-models diff --git a/scripts/user_retirement/requirements/base.txt b/scripts/user_retirement/requirements/base.txt index 9945c989ae62..27e8d695c6b3 100644 --- a/scripts/user_retirement/requirements/base.txt +++ b/scripts/user_retirement/requirements/base.txt @@ -50,7 +50,7 @@ django-crum==0.7.9 # via edx-django-utils django-waffle==4.1.0 # via edx-django-utils -edx-django-utils==5.13.0 +edx-django-utils==5.14.1 # via edx-rest-api-client edx-rest-api-client==5.7.0 # via -r scripts/user_retirement/requirements/base.in diff --git a/scripts/user_retirement/requirements/testing.txt b/scripts/user_retirement/requirements/testing.txt index 67d1d9098845..2468d17662ea 100644 --- a/scripts/user_retirement/requirements/testing.txt +++ b/scripts/user_retirement/requirements/testing.txt @@ -70,7 +70,7 @@ django-waffle==4.1.0 # via # -r scripts/user_retirement/requirements/base.txt # edx-django-utils -edx-django-utils==5.13.0 +edx-django-utils==5.14.1 # via # -r scripts/user_retirement/requirements/base.txt # edx-rest-api-client