v0.1.2
Go quality gates / test (push) Waiting to run

This commit is contained in:
Mateusz Gruszczyński committed 2026-12-01 00:16:15 +01:00
1 parent de13d851a8
commit a28362b82c
34 files changed
+1541 -341

No files matched your search

+3
View File
@@ -200,6 +200,9 @@ func (s *Server) metrics(w http.ResponseWriter, r *http.Request) {
d.MetricTotal = len(d.MetricNodes)
}
sm, e, last := s.telemetry.Snapshot()
if len(sm) > 0 {
d.RecentQueryRate = sm[len(sm)-1].QueryRate
}
d.SamplingCount = len(sm)
d.SamplingTime = last
d.SamplingError = e