Skip to content

Commit

Permalink
Fix emit 0 count if encounters error (#4073)
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 authored Mar 25, 2021
1 parent dca153d commit f3eaa11
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions common/domain/replication_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,14 @@ func (q *replicationQueueImpl) emitDLQSize() {
).IncCounter(
metrics.DomainReplicationQueueSizeErrorCount,
)
} else {
q.metricsClient.Scope(
metrics.DomainReplicationQueueScope,
).UpdateGauge(
metrics.DomainReplicationQueueSizeGauge,
float64(size),
)
}
q.metricsClient.Scope(
metrics.DomainReplicationQueueScope,
).UpdateGauge(
metrics.DomainReplicationQueueSizeGauge,
float64(size),
)
}
}
}

0 comments on commit f3eaa11

Please sign in to comment.