...
1
2 package discard
3
4 import "github.com/go-kit/kit/metrics"
5
6 type counter struct{}
7
8
9 func NewCounter() metrics.Counter { return counter{} }
10
11
12 func (c counter) With(labelValues ...string) metrics.Counter { return c }
13
14
15 func (c counter) Add(delta float64) {}
16
17 type gauge struct{}
18
19
20 func NewGauge() metrics.Gauge { return gauge{} }
21
22
23 func (g gauge) With(labelValues ...string) metrics.Gauge { return g }
24
25
26 func (g gauge) Set(value float64) {}
27
28
29 func (g gauge) Add(delta float64) {}
30
31 type histogram struct{}
32
33
34 func NewHistogram() metrics.Histogram { return histogram{} }
35
36
37 func (h histogram) With(labelValues ...string) metrics.Histogram { return h }
38
39
40 func (h histogram) Observe(value float64) {}
41
View as plain text