Skip to content

Commit

Permalink
Fix nopmetrics interface (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
khorshuheng authored Sep 3, 2021
1 parent d737834 commit a41a822
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/pkg/instrumentation/metrics/nop.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ func (NopMetricsCollector) MeasureDurationMs(MetricName, map[string]func() strin
func (NopMetricsCollector) RecordGauge(MetricName, float64, map[string]string) error {
return nil
}

// Inc satisfies the Collector interface
func (c NopMetricsCollector) Inc(key MetricName, labels map[string]string) error {
return nil
}

0 comments on commit a41a822

Please sign in to comment.