fix: track HTTP request stats for all monitoring endpoints

This commit is contained in:
Joseph Doherty
2026-02-22 22:25:00 -05:00
parent 0409acc745
commit a52db677e2
3 changed files with 67 additions and 21 deletions

View File

@@ -47,9 +47,6 @@ public sealed class VarzHandler
_lastCpuUsage = currentCpu;
}
// Track HTTP request count for /varz
stats.HttpReqStats.AddOrUpdate("/varz", 1, (_, v) => v + 1);
return new Varz
{
Id = _server.ServerId,