type Scalar … type HistogramInt64 … type HistogramFloat64 … // Count creates a new metric based on the Scalar information that counts // the number of times the supplied int64 measure is set. // Metrics of this type will use Int64Data. func (info Scalar) Count(e *Config, key label.Key) { … } // SumInt64 creates a new metric based on the Scalar information that sums all // the values recorded on the int64 measure. // Metrics of this type will use Int64Data. func (info Scalar) SumInt64(e *Config, key *keys.Int64) { … } // LatestInt64 creates a new metric based on the Scalar information that tracks // the most recent value recorded on the int64 measure. // Metrics of this type will use Int64Data. func (info Scalar) LatestInt64(e *Config, key *keys.Int64) { … } // SumFloat64 creates a new metric based on the Scalar information that sums all // the values recorded on the float64 measure. // Metrics of this type will use Float64Data. func (info Scalar) SumFloat64(e *Config, key *keys.Float64) { … } // LatestFloat64 creates a new metric based on the Scalar information that tracks // the most recent value recorded on the float64 measure. // Metrics of this type will use Float64Data. func (info Scalar) LatestFloat64(e *Config, key *keys.Float64) { … } // Record creates a new metric based on the HistogramInt64 information that // tracks the bucketized counts of values recorded on the int64 measure. // Metrics of this type will use HistogramInt64Data. func (info HistogramInt64) Record(e *Config, key *keys.Int64) { … } // Record creates a new metric based on the HistogramFloat64 information that // tracks the bucketized counts of values recorded on the float64 measure. // Metrics of this type will use HistogramFloat64Data. func (info HistogramFloat64) Record(e *Config, key *keys.Float64) { … }