Update reporter.go
This commit is contained in:
parent
09fdd3c121
commit
7a6669d199
@ -1,3 +1,4 @@
|
|||||||
|
// Package metrics is for instrumentation and debugging
|
||||||
package metrics
|
package metrics
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
@ -5,7 +6,7 @@ import "time"
|
|||||||
// Tags is a map of fields to add to a metric:
|
// Tags is a map of fields to add to a metric:
|
||||||
type Tags map[string]string
|
type Tags map[string]string
|
||||||
|
|
||||||
// Reporter is the standard metrics interface:
|
// Reporter is an interface for collecting and instrumenting metrics
|
||||||
type Reporter interface {
|
type Reporter interface {
|
||||||
Count(id string, value int64, tags Tags) error
|
Count(id string, value int64, tags Tags) error
|
||||||
Gauge(id string, value float64, tags Tags) error
|
Gauge(id string, value float64, tags Tags) error
|
||||||
|
Loading…
Reference in New Issue
Block a user