Rename observer.go to interface.go

This commit is contained in:
Mike Spreitzer 2022-05-23 16:11:05 -04:00
parent 7d64a93a14
commit a4c18fa7fc

View File

@ -39,7 +39,6 @@ type RatioedGauge interface {
// RatioedGaugeVec creates related observers that are // RatioedGaugeVec creates related observers that are
// differentiated by a series of label values // differentiated by a series of label values
type RatioedGaugeVec interface { type RatioedGaugeVec interface {
// NewForLabelValuesSafe makes a new vector member for the given tuple of label values, // NewForLabelValuesSafe makes a new vector member for the given tuple of label values,
// initialized with the given numerator and denominator. // initialized with the given numerator and denominator.
// Unlike the usual Vec WithLabelValues method, this is intended to be called only // Unlike the usual Vec WithLabelValues method, this is intended to be called only
@ -50,12 +49,11 @@ type RatioedGaugeVec interface {
} }
//////////////////////////////// Pairs //////////////////////////////// //////////////////////////////// Pairs ////////////////////////////////
//
/* API Priority and Fairness tends to use RatioedGaugeVec members in pairs, // API Priority and Fairness tends to use RatioedGaugeVec members in pairs,
* one for requests waiting in a queue and one for requests being executed. // one for requests waiting in a queue and one for requests being executed.
* The following definitions are a convenience layer that adds support for that // The following definitions are a convenience layer that adds support for that
* particular pattern of usage. // particular pattern of usage.
*/
// RatioedGaugePair is a corresponding pair of gauges, one for the // RatioedGaugePair is a corresponding pair of gauges, one for the
// number of requests waiting in queue(s) and one for the number of // number of requests waiting in queue(s) and one for the number of
@ -70,7 +68,6 @@ type RatioedGaugePair struct {
// RatioedGaugePairVec generates pairs // RatioedGaugePairVec generates pairs
type RatioedGaugePairVec interface { type RatioedGaugePairVec interface {
// NewForLabelValuesSafe makes a new vector member for the given tuple of label values, // NewForLabelValuesSafe makes a new vector member for the given tuple of label values,
// initialized with the given denominators and zeros for numerators. // initialized with the given denominators and zeros for numerators.
// Unlike the usual Vec WithLabelValues method, this is intended to be called only // Unlike the usual Vec WithLabelValues method, this is intended to be called only