Skip to content

Commit

Permalink
Chore: adding Datadog monitoring middleware (#548)
Browse files Browse the repository at this point in the history
* chore: adding datadog monitoring middleware

* style: fix comment
  • Loading branch information
pmakwana93 authored Sep 4, 2024
1 parent aec0b74 commit 5a4bb19
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 @@ -83,6 +83,7 @@ def root(*path_fragments):
'log_request_id.middleware.RequestIDMiddleware',
# Resets RequestCache utility for added safety.
'edx_django_utils.cache.middleware.RequestCacheMiddleware',
'edx_django_utils.monitoring.DeploymentMonitoringMiddleware',
# Enables monitoring utility for writing custom metrics.
'edx_django_utils.monitoring.middleware.MonitoringCustomMetricsMiddleware',
'corsheaders.middleware.CorsMiddleware',
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 5a4bb19

Please sign in to comment.