Skip to content

Commit

Permalink
Merge pull request #172 from shogo82148/dependabot/go_modules/github.…
Browse files Browse the repository at this point in the history
…com/armon/go-metrics-0.3.11

build(deps): bump github.com/armon/go-metrics from 0.3.10 to 0.3.11
  • Loading branch information
shogo82148 committed May 6, 2022
2 parents f422052 + 6f5c0c9 commit 8734ab6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -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=
Expand Down
17 changes: 10 additions & 7 deletions metrics.go
Expand Up @@ -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.
Expand Down

0 comments on commit 8734ab6

Please sign in to comment.