featurebase/roaring/roaring_stats.go
2022-01-21 10:57:05 -07:00

17 lines
377 B
Go

// Copyright 2021 Molecula Corp. All rights reserved.
//go:build roaringstats
// +build roaringstats
package roaring
import (
"github.com/molecula/featurebase/v3/stats"
)
var statsEv = stats.NewExpvarStatsClient()
// statsHit increments the given stat, so we can tell how often we've hit
// that particular event.
func statsHit(name string) {
statsEv.Count(name, 1, 1)
}