Commit 29c9080b by Calen Pennington

Add the entry-point used to load an XBlock to the tags when recording metrics on…

Add the entry-point used to load an XBlock to the tags when recording metrics on rendering and handling
parent e62e6b4c
...@@ -1193,7 +1193,8 @@ class MetricsMixin(object): ...@@ -1193,7 +1193,8 @@ class MetricsMixin(object):
u'action:render', u'action:render',
u'action_status:{}'.format(status), u'action_status:{}'.format(status),
u'course_id:{}'.format(course_id), u'course_id:{}'.format(course_id),
u'block_type:{}'.format(block.scope_ids.block_type) u'block_type:{}'.format(block.scope_ids.block_type),
u'block_family:{}'.format(block.entry_point),
] ]
dog_stats_api.increment(XMODULE_METRIC_NAME, tags=tags) dog_stats_api.increment(XMODULE_METRIC_NAME, tags=tags)
dog_stats_api.histogram( dog_stats_api.histogram(
...@@ -1220,7 +1221,8 @@ class MetricsMixin(object): ...@@ -1220,7 +1221,8 @@ class MetricsMixin(object):
u'action:handle', u'action:handle',
u'action_status:{}'.format(status), u'action_status:{}'.format(status),
u'course_id:{}'.format(course_id), u'course_id:{}'.format(course_id),
u'block_type:{}'.format(block.scope_ids.block_type) u'block_type:{}'.format(block.scope_ids.block_type),
u'block_family:{}'.format(block.entry_point),
] ]
dog_stats_api.increment(XMODULE_METRIC_NAME, tags=tags) dog_stats_api.increment(XMODULE_METRIC_NAME, tags=tags)
dog_stats_api.histogram( dog_stats_api.histogram(
......
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