diff --git a/bridge/opencensus/metric.go b/bridge/opencensus/metric.go index e0d197e910f..040dbdfeb8d 100644 --- a/bridge/opencensus/metric.go +++ b/bridge/opencensus/metric.go @@ -38,7 +38,7 @@ type producer struct { manager *metricproducer.Manager } -// NewMetricExporter returns a metric.Producer that fetches metrics from +// NewMetricProducer returns a metric.Producer that fetches metrics from // OpenCensus. func NewMetricProducer() metric.Producer { return &producer{ @@ -46,7 +46,7 @@ func NewMetricProducer() metric.Producer { } } -func (p *producer) Produce(_ context.Context) ([]metricdata.ScopeMetrics, error) { +func (p *producer) Produce(context.Context) ([]metricdata.ScopeMetrics, error) { producers := p.manager.GetAll() data := []*ocmetricdata.Metric{} for _, ocProducer := range producers {