Skip to content

Commit

Permalink
Fix task rescheduler metric scope (#2943)
Browse files Browse the repository at this point in the history
  • Loading branch information
yycptt committed Jun 3, 2022
1 parent c3d172d commit dfbcdce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion service/history/timerQueueStandbyProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func newTimerQueueStandbyProcessor(
rescheduler := queues.NewRescheduler(
scheduler,
shard.GetTimeSource(),
metricsClient.Scope(metrics.TimerActiveQueueProcessorScope),
metricsClient.Scope(metrics.TimerStandbyQueueProcessorScope),
)

timerQueueAckMgr := newTimerQueueAckMgr(
Expand Down
4 changes: 2 additions & 2 deletions service/history/transferQueueActiveProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func newTransferQueueActiveProcessor(
rescheduler := queues.NewRescheduler(
scheduler,
shard.GetTimeSource(),
shard.GetMetricsClient().Scope(metrics.TimerActiveQueueProcessorScope),
shard.GetMetricsClient().Scope(metrics.TransferActiveQueueProcessorScope),
)

transferTaskFilter := func(task tasks.Task) bool {
Expand Down Expand Up @@ -314,7 +314,7 @@ func newTransferQueueFailoverProcessor(
rescheduler := queues.NewRescheduler(
scheduler,
shard.GetTimeSource(),
shard.GetMetricsClient().Scope(metrics.TimerActiveQueueProcessorScope),
shard.GetMetricsClient().Scope(metrics.TransferActiveQueueProcessorScope),
)

queueAckMgr := newQueueFailoverAckMgr(
Expand Down

0 comments on commit dfbcdce

Please sign in to comment.