-
Notifications
You must be signed in to change notification settings - Fork 17
/
nop_metrics.go
17 lines (14 loc) · 987 Bytes
/
nop_metrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package baker
import "time"
// NopMetrics implements a metrics.Client that does nothing.
type NopMetrics struct{}
func (NopMetrics) Gauge(name string, value float64) {}
func (NopMetrics) GaugeWithTags(name string, value float64, tags []string) {}
func (NopMetrics) RawCount(name string, value int64) {}
func (NopMetrics) RawCountWithTags(name string, value int64, tags []string) {}
func (NopMetrics) DeltaCount(name string, delta int64) {}
func (NopMetrics) DeltaCountWithTags(name string, delta int64, tags []string) {}
func (NopMetrics) Histogram(name string, value float64) {}
func (NopMetrics) HistogramWithTags(name string, value float64, tags []string) {}
func (NopMetrics) Duration(name string, value time.Duration) {}
func (NopMetrics) DurationWithTags(name string, value time.Duration, tags []string) {}