util/clientmetric: use counter in aggcounter

Fixes #14743

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2025-01-24 12:51:01 +01:00 committed by Kristoffer Dalby
parent 450bc9a6b8
commit 05afa31df3

View File

@ -270,7 +270,7 @@ func (c *AggregateCounter) UnregisterAll() {
// a sum of expvar variables registered with it.
func NewAggregateCounter(name string) *AggregateCounter {
c := &AggregateCounter{counters: set.Set[*expvar.Int]{}}
NewGaugeFunc(name, c.Value)
NewCounterFunc(name, c.Value)
return c
}