Record the number of blocks requested in get_many

This commit is contained in:
Calen Pennington
2015-08-19 16:32:15 -04:00
parent a495847b45
commit 26f06d4a55

View File

@@ -136,6 +136,8 @@ class DjangoXBlockUserStateClient(XBlockUserStateClient):
block_count = state_length = 0
evt_time = time()
self._ddog_histogram(evt_time, 'get_many.blks_requested', len(block_keys))
modules = self._get_student_modules(username, block_keys)
for module, usage_key in modules:
if module.state is None: