Skip to content

Commit 61f3b3b

Browse files
committed
Add some docs
1 parent 4973be8 commit 61f3b3b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backend/metrics/metrics.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ import "time"
55
type Tags map[string]string
66

77
type Client interface {
8+
//Counter records a value at a point in time.
89
Counter(name string, tags Tags, value int64)
910

11+
// Distribution records a value at a point in time.
1012
Distribution(name string, tags Tags, value float64)
1113

14+
// Gauge records a value at a point in time.
1215
Gauge(name string, tags Tags, value int64)
1316

17+
// Timing records the duration of an event.
1418
Timing(name string, tags Tags, duration time.Duration)
1519

20+
// WithTags returns a new client with the given tags applied to all metrics.
1621
WithTags(tags Tags) Client
1722
}

0 commit comments

Comments
 (0)