Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed May 6, 2022
1 parent 9ff0386 commit 6f5c0c9
Showing 1 changed file with 10 additions and 7 deletions.
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 6f5c0c9

Please sign in to comment.