Skip to content

Commit

Permalink
emit domain specific metrics in task processing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjdawson2016 committed May 26, 2020
1 parent 29c9164 commit af5440b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/taskProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (t *taskProcessor) processTaskOnce(

startTime := t.timeSource.Now()
scopeIdx, err := task.processor.process(task)
scope := t.metricsClient.Scope(scopeIdx)
scope := t.metricsClient.Scope(scopeIdx).Tagged(t.getDomainTagByID(task.task.GetDomainID()))
if task.shouldProcessTask {
scope.IncCounter(metrics.TaskRequests)
scope.RecordTimer(metrics.TaskProcessingLatency, time.Since(startTime))
Expand Down

0 comments on commit af5440b

Please sign in to comment.