this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add warning counter for non-active accounts in event processing (#1187)

I was trying to follow dropped events, and realised this metric is not
being written.

authored by

bnewbold and committed by
GitHub
919084ff f4c7b742

+4 -2
+4 -2
cmd/relay/relay/ingest.go
··· 99 99 } 100 100 101 101 if !acc.IsActive() { 102 - logger.Info("dropping commit message for non-active account", "status", acc.Status, "upstreamStatus", acc.UpstreamStatus) 102 + logger.Info("dropping commit message for inactive-active account", "status", acc.Status, "upstreamStatus", acc.UpstreamStatus) 103 + eventsWarningsCounter.WithLabelValues(hostname, "inactive-account").Add(1) 103 104 return nil 104 105 } 105 106 ··· 158 159 } 159 160 160 161 if !acc.IsActive() { 161 - logger.Info("dropping sync message for non-active account", "status", acc.Status, "upstreamStatus", acc.UpstreamStatus) 162 + logger.Info("dropping sync message for inactive-active account", "status", acc.Status, "upstreamStatus", acc.UpstreamStatus) 163 + eventsWarningsCounter.WithLabelValues(hostname, "inactive-account").Add(1) 162 164 return nil 163 165 } 164 166