Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #203 from edx/robrap/ARCH-193-add-metrics
Browse files Browse the repository at this point in the history
Add metrics for requests.
  • Loading branch information
robrap authored Aug 13, 2018
2 parents edd23dd + 7782fe8 commit 9f7a1aa
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 10 deletions.
3 changes: 3 additions & 0 deletions analyticsdataserver/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,16 @@
# See: https://docs.djangoproject.com/en/dev/ref/settings/#middleware-classes
MIDDLEWARE_CLASSES = (
# Default Django middleware.
'edx_django_utils.cache.middleware.RequestCacheMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'edx_django_utils.cache.middleware.TieredCacheMiddleware',
'edx_rest_framework_extensions.middleware.RequestMetricsMiddleware',
'analytics_data_api.v0.middleware.LearnerEngagementTimelineNotFoundErrorMiddleware',
'analytics_data_api.v0.middleware.LearnerNotFoundErrorMiddleware',
'analytics_data_api.v0.middleware.CourseNotSpecifiedErrorMiddleware',
Expand Down
1 change: 1 addition & 0 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Markdown==2.6.6 # BSD:markdown is used by swagger for render
edx-ccx-keys==0.2.1
edx-django-release-util
edx-opaque-keys==0.4.0
edx-django-utils
edx-rest-api-client # Apache 2.0
edx-drf-extensions
edx-enterprise-data==0.2.4
Expand Down
5 changes: 3 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ djangorestframework==3.6.3
docutils==0.14 # via awscli, botocore, edx-enterprise-data
edx-ccx-keys==0.2.1
edx-django-release-util==0.3.1
edx-drf-extensions==1.2.4
edx-django-utils==0.4.1
edx-drf-extensions==1.6.1
edx-enterprise-data==0.2.4
edx-opaque-keys==0.4
edx-rest-api-client==1.7.1
edx-rest-api-client==1.8.2
elasticsearch-dsl==0.0.11
elasticsearch==1.9.0 # via elasticsearch-dsl
enum34==1.1.6 # via cryptography, edx-enterprise-data
Expand Down
5 changes: 3 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ djangorestframework==3.6.3
docutils==0.14 # via awscli, botocore, edx-enterprise-data
edx-ccx-keys==0.2.1
edx-django-release-util==0.3.1
edx-drf-extensions==1.2.4
edx-django-utils==0.4.1
edx-drf-extensions==1.6.1
edx-enterprise-data==0.2.4
edx-opaque-keys==0.4
edx-rest-api-client==1.7.1
edx-rest-api-client==1.8.2
elasticsearch-dsl==0.0.11
elasticsearch==1.9.0 # via elasticsearch-dsl
enum34==1.1.6 # via cryptography, edx-enterprise-data
Expand Down
5 changes: 3 additions & 2 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ djangorestframework==3.6.3
docutils==0.14 # via awscli, botocore, edx-enterprise-data, sphinx
edx-ccx-keys==0.2.1
edx-django-release-util==0.3.1
edx-drf-extensions==1.2.4
edx-django-utils==0.4.1
edx-drf-extensions==1.6.1
edx-enterprise-data==0.2.4
edx-opaque-keys==0.4
edx-rest-api-client==1.7.1
edx-rest-api-client==1.8.2
elasticsearch-dsl==0.0.11
elasticsearch==1.9.0 # via elasticsearch-dsl
enum34==1.1.6 # via cryptography, edx-enterprise-data
Expand Down
5 changes: 3 additions & 2 deletions requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ djangorestframework==3.6.3
docutils==0.14 # via awscli, botocore, edx-enterprise-data
edx-ccx-keys==0.2.1
edx-django-release-util==0.3.1
edx-drf-extensions==1.2.4
edx-django-utils==0.4.1
edx-drf-extensions==1.6.1
edx-enterprise-data==0.2.4
edx-opaque-keys==0.4
edx-rest-api-client==1.7.1
edx-rest-api-client==1.8.2
elasticsearch-dsl==0.0.11
elasticsearch==1.9.0 # via elasticsearch-dsl
enum34==1.1.6 # via cryptography, edx-enterprise-data
Expand Down
5 changes: 3 additions & 2 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ djangorestframework==3.6.3
docutils==0.14 # via awscli, botocore, edx-enterprise-data
edx-ccx-keys==0.2.1
edx-django-release-util==0.3.1
edx-drf-extensions==1.2.4
edx-django-utils==0.4.1
edx-drf-extensions==1.6.1
edx-enterprise-data==0.2.4
edx-opaque-keys==0.4
edx-rest-api-client==1.7.1
edx-rest-api-client==1.8.2
elasticsearch-dsl==0.0.11
elasticsearch==1.9.0 # via elasticsearch-dsl
enum34==1.1.6 # via cryptography, edx-enterprise-data
Expand Down

0 comments on commit 9f7a1aa

Please sign in to comment.