Unverified Commit 47e3c68f by Gabe Mulley Committed by GitHub

Merge pull request #16439 from edx/mulby/monitor-enrollment-perf

set a custom course_id metric on enrollment
parents 8809fd86 15c2a828
......@@ -1263,6 +1263,10 @@ def change_enrollment(request, check_access=True):
)
return HttpResponseBadRequest(_("Invalid course id"))
# Allow us to monitor performance of this transaction on a per-course basis since we often roll-out features
# on a per-course basis.
monitoring_utils.set_custom_metric('course_id', unicode(course_id))
if action == "enroll":
# Make sure the course exists
# We don't do this check on unenroll, or a bad course id can't be unenrolled from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment