aboutsummaryrefslogtreecommitdiff
path: root/vendor/go.opencensus.io/stats/measure_int64.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.opencensus.io/stats/measure_int64.go')
-rw-r--r--vendor/go.opencensus.io/stats/measure_int64.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/vendor/go.opencensus.io/stats/measure_int64.go b/vendor/go.opencensus.io/stats/measure_int64.go
index b6fd25f..5fedaad 100644
--- a/vendor/go.opencensus.io/stats/measure_int64.go
+++ b/vendor/go.opencensus.io/stats/measure_int64.go
@@ -15,7 +15,7 @@
package stats
-// Int64Measure is a measure of type int64.
+// Int64Measure is a measure for int64 values.
type Int64Measure struct {
md *measureDescriptor
}
@@ -44,8 +44,10 @@ func (m *Int64Measure) M(v int64) Measurement {
return Measurement{m: m, v: float64(v)}
}
-// Int64 creates a new measure of type Int64Measure.
-// It never returns an error.
+// Int64 creates a new measure for int64 values.
+//
+// See the documentation for interface Measure for more guidance on the
+// parameters of this function.
func Int64(name, description, unit string) *Int64Measure {
mi := registerMeasureHandle(name, description, unit)
return &Int64Measure{mi}