We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4973be8 commit 61f3b3bCopy full SHA for 61f3b3b
backend/metrics/metrics.go
@@ -5,13 +5,18 @@ import "time"
5
type Tags map[string]string
6
7
type Client interface {
8
+ //Counter records a value at a point in time.
9
Counter(name string, tags Tags, value int64)
10
11
+ // Distribution records a value at a point in time.
12
Distribution(name string, tags Tags, value float64)
13
14
+ // Gauge records a value at a point in time.
15
Gauge(name string, tags Tags, value int64)
16
17
+ // Timing records the duration of an event.
18
Timing(name string, tags Tags, duration time.Duration)
19
20
+ // WithTags returns a new client with the given tags applied to all metrics.
21
WithTags(tags Tags) Client
22
}
0 commit comments