Skip to content

Commit

Permalink
Remove ReplicationTasksReturned (#4514)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSnowden authored Jun 22, 2023
1 parent 9405cf8 commit cca978f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions common/metrics/metric_defs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1469,9 +1469,7 @@ var (
ReplicationTasksLag = NewTimeHistogramDef("replication_tasks_lag")
// ReplicationTasksFetched records the number of tasks fetched by the poller.
// It has the same unit issue as ReplicationTasksLag.
ReplicationTasksFetched = NewTimeHistogramDef("replication_tasks_fetched")
// ReplicationTasksReturned is the same as ReplicationTasksFetched.
ReplicationTasksReturned = NewTimeHistogramDef("replication_tasks_returned")
ReplicationTasksFetched = NewTimeHistogramDef("replication_tasks_fetched")
ReplicationLatency = NewTimerDef("replication_latency")
ReplicationTasksAppliedLatency = NewTimerDef("replication_tasks_applied_latency")
ReplicationDLQFailed = NewCounterDef("replication_dlq_enqueue_failed")
Expand Down
3 changes: 0 additions & 3 deletions service/history/replication/ack_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,6 @@ func (p *ackMgrImpl) GetTasks(
p.metricsHandler.Histogram(metrics.ReplicationTasksFetched.GetMetricName(), metrics.ReplicationTasksFetched.GetMetricUnit()).
Record(int64(len(replicationTasks)))

p.metricsHandler.Histogram(metrics.ReplicationTasksReturned.GetMetricName(), metrics.ReplicationTasksReturned.GetMetricUnit()).
Record(int64(len(replicationTasks)))

replicationEventTime := timestamp.TimePtr(p.shard.GetTimeSource().Now())
if len(replicationTasks) > 0 {
replicationEventTime = replicationTasks[len(replicationTasks)-1].GetVisibilityTime()
Expand Down

0 comments on commit cca978f

Please sign in to comment.