Skip to content

Commit

Permalink
Fix task schedule latency metric (#3395)
Browse files Browse the repository at this point in the history
  • Loading branch information
yycptt committed Sep 15, 2022
1 parent 160ba69 commit 2ec2234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/queues/executable.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (e *executableImpl) Execute() error {

priorityTaggedProvider := e.taggedMetricsHandler.WithTags(metrics.TaskPriorityTag(e.priority.String()))
priorityTaggedProvider.Counter(TaskRequests).Record(1)
priorityTaggedProvider.Timer(TaskScheduleLatency).Record(e.scheduledTime.Sub(startTime))
priorityTaggedProvider.Timer(TaskScheduleLatency).Record(startTime.Sub(e.scheduledTime))

return err
}
Expand Down

0 comments on commit 2ec2234

Please sign in to comment.