Skip to content

Commit 7b74056

Browse files
committed
Add task counts to batch
1 parent 984f655 commit 7b74056

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

service/history/workflow/metrics.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ func emitMutableStateStatus(
9393
}
9494

9595
for category, taskCount := range stats.TaskCountByCategory {
96-
// We use the metricsHandler rather than the batchHandler here because the same metric is repeatedly sent
97-
metrics.TaskCount.With(metricsHandler).
98-
Record(int64(taskCount), metrics.TaskCategoryTag(category))
96+
metrics.TaskCount.With(batchHandler).Record(int64(taskCount), metrics.TaskCategoryTag(category))
9997
}
10098
}
10199

0 commit comments

Comments
 (0)