From 9ff0386da0f5918f07f1c8621d5382b6ae2c27be Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Apr 2022 20:01:38 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/armon/go-metrics from 0.3.10 to 0.3.11 Bumps [github.com/armon/go-metrics](https://github.com/armon/go-metrics) from 0.3.10 to 0.3.11. - [Release notes](https://github.com/armon/go-metrics/releases) - [Commits](https://github.com/armon/go-metrics/compare/v0.3.10...v0.3.11) --- updated-dependencies: - dependency-name: github.com/armon/go-metrics dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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= From 6f5c0c996423d403bed06e84caf1a746913d51f1 Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Fri, 6 May 2022 16:09:33 +0900 Subject: [PATCH 2/2] fix compile error --- metrics.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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.