Add cookie size monitoring New Relic metrics.
This adds middleware that will create custom parameter metrics in New Relic to track the size of all the cookies being received for our domain. The custom fields are "cookies_total_size" and a separate named parameter for every cookie size, e.g. "cookies.csrftoken.size". This is intended to help us track cookie growth and better diagnose issues where users lose their sessions. It is toggled by the 'request_utils.capture_cookie_sizes' Waffle Flag.
Showing
- cms/envs/common.py 3 additions, 0 deletionscms/envs/common.py
- lms/djangoapps/course_api/tests/test_views.py 1 addition, 1 deletionlms/djangoapps/course_api/tests/test_views.py
- lms/envs/common.py 3 additions, 0 deletionslms/envs/common.py
- openedx/core/djangoapps/bookmarks/tests/test_views.py 1 addition, 1 deletionopenedx/core/djangoapps/bookmarks/tests/test_views.py
- openedx/core/djangoapps/user_api/accounts/tests/test_views.py 8 additions, 8 deletions...edx/core/djangoapps/user_api/accounts/tests/test_views.py
- openedx/core/lib/request_utils.py 45 additions, 1 deletionopenedx/core/lib/request_utils.py
Loading
Please register or sign in to comment