Skip to content

Commit

Permalink
chore: adding datadog monitoring middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakwana93 committed Aug 29, 2024
1 parent d4bf7dd commit 9946926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enterprise_access/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def root(*path_fragments):
# Resets RequestCache utility for added safety.
'edx_django_utils.cache.middleware.RequestCacheMiddleware',
# Enables monitoring utility for writing custom metrics.
'edx_django_utils.monitoring.DeploymentMonitoringMiddleware',
'edx_django_utils.monitoring.middleware.MonitoringCustomMetricsMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand All @@ -100,7 +101,7 @@ def root(*path_fragments):
# Enables force_django_cache_miss functionality for TieredCache.
'edx_django_utils.cache.middleware.TieredCacheMiddleware',
# Outputs monitoring metrics for a request.
'edx_rest_framework_extensions.middleware.RequestMetricsMiddleware',
'edx_rest_framework_extensions.middleware.RequestCustomAttributesMiddleware',
# Ensures proper DRF permissions in support of JWTs
'edx_rest_framework_extensions.auth.jwt.middleware.EnsureJWTAuthSettingsMiddleware',
# Track who made each change to a model using HistoryRequestMiddleware
Expand Down

0 comments on commit 9946926

Please sign in to comment.