diff --git a/go.mod b/go.mod index 1195df49..3be9ec99 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/ajg/form v1.5.1 - github.com/armon/go-metrics v0.3.10 + github.com/armon/go-metrics v0.3.11 github.com/dimfeld/httppath v0.0.0-20170720192232-ee938bf73598 github.com/dimfeld/httptreemux v5.0.1+incompatible github.com/go-kit/log v0.2.0 diff --git a/go.sum b/go.sum index 49d25bd3..99357cac 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,8 @@ github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuy github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/armon/go-metrics v0.3.10 h1:FR+drcQStOe+32sYyJYyZ7FIdgoGGBnwLl+flodp8Uo= -github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= +github.com/armon/go-metrics v0.3.11 h1:/q4zqTAH+/mtFjimfc0SC7yuuxZshlS4TaCeBm+7sZ0= +github.com/armon/go-metrics v0.3.11/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef h1:46PFijGLmAjMPwCCCo7Jf0W6f9slllCkkv7vyc1yOSg= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= diff --git a/metrics.go b/metrics.go index 20997311..09e256fd 100644 --- a/metrics.go +++ b/metrics.go @@ -67,27 +67,30 @@ func NewNoOpSink() metrics.MetricSink { // NoOpSink default NOOP metrics recorder type NoOpSink struct{} -// SetGauge implements Collector. +// SetGauge implements metrics.MetricSin. func (*NoOpSink) SetGauge(key []string, val float32) {} -// SetGaugeWithLabels implements Collector. +// SetGaugeWithLabels implements metrics.MetricSin. func (*NoOpSink) SetGaugeWithLabels(key []string, val float32, labels []metrics.Label) {} -// EmitKey implements Collector. +// EmitKey implements metrics.MetricSin. func (*NoOpSink) EmitKey(key []string, val float32) {} -// IncrCounter implements Controller. +// IncrCounter implements metrics.MetricSin. func (*NoOpSink) IncrCounter(key []string, val float32) {} -// IncrCounterWithLabels implements Controller. +// IncrCounterWithLabels implements metrics.MetricSin. func (*NoOpSink) IncrCounterWithLabels(key []string, val float32, labels []metrics.Label) {} -// AddSample implements Controller. +// AddSample implements metrics.MetricSin. func (*NoOpSink) AddSample(key []string, val float32) {} -// AddSampleWithLabels implements Controller. +// AddSampleWithLabels implements metrics.MetricSin. func (*NoOpSink) AddSampleWithLabels(key []string, val float32, labels []metrics.Label) {} +// Shutdown implements metrics.MetricSin. +func (*NoOpSink) Shutdown() {} + // NewMetrics initializes goa's metrics instance with the supplied // configuration and metrics sink // This method is deprecated and SetMetrics should be used instead.