From eb2df4117115bfc7bd53552228fbbe757f48dcda Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 18 Dec 2014 16:09:02 -0800 Subject: [PATCH] consul: Mesure time for reapTombstones --- consul/leader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consul/leader.go b/consul/leader.go index df0c46c282..deaeccd08e 100644 --- a/consul/leader.go +++ b/consul/leader.go @@ -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,