AmatyaAvadhanula commented on code in PR #13331:
URL: https://github.com/apache/druid/pull/13331#discussion_r1017443346
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/actions/LocalTaskActionClient.java:
##########
@@ -72,14 +73,15 @@ public <RetType> RetType submit(TaskAction<RetType>
taskAction)
final long performStartTime = System.currentTimeMillis();
final RetType result = taskAction.perform(task, toolbox);
- emitTimerMetric("task/action/run/time", System.currentTimeMillis() -
performStartTime);
+ emitTimerMetric("task/action/run/time", System.currentTimeMillis() -
performStartTime, taskAction);
return result;
}
- private void emitTimerMetric(final String metric, final long time)
+ private void emitTimerMetric(final String metric, final long time,
TaskAction taskAction)
{
final ServiceMetricEvent.Builder metricBuilder =
ServiceMetricEvent.builder();
IndexTaskUtils.setTaskDimensions(metricBuilder, task);
+ metricBuilder.setDimension(DruidMetrics.TASK_ACTION_TYPE,
taskAction.getClass().getName());
Review Comment:
Thanks, I wasn't aware of it. I'll revert these changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]