mirror of https://github.com/status-im/consul.git
consul: Mesure time for reapTombstones
This commit is contained in:
parent
e02e8a4558
commit
eb2df41171
|
@ -536,6 +536,7 @@ func (s *Server) removeConsulServer(m serf.Member, port int) error {
|
|||
// through Raft to ensure consistency. We do this outside the leader loop
|
||||
// to avoid blocking.
|
||||
func (s *Server) reapTombstones(index uint64) {
|
||||
defer metrics.MeasureSince([]string{"consul", "leader", "reapTombstones"}, time.Now())
|
||||
req := structs.TombstoneRequest{
|
||||
Datacenter: s.config.Datacenter,
|
||||
Op: structs.TombstoneReap,
|
||||
|
|
Loading…
Reference in New Issue