Update reporter.go

This commit is contained in:
Asim Aslam 2020-08-18 08:30:29 +01:00 committed by GitHub
parent 09fdd3c121
commit 7a6669d199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
// Package metrics is for instrumentation and debugging
package metrics
import "time"
@ -5,7 +6,7 @@ import "time"
// Tags is a map of fields to add to a metric:
type Tags map[string]string
// Reporter is the standard metrics interface:
// Reporter is an interface for collecting and instrumenting metrics
type Reporter interface {
Count(id string, value int64, tags Tags) error
Gauge(id string, value float64, tags Tags) error