From f4d3d264f011a6a76e36133b90929df3cc286d9e Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Thu, 15 Dec 2022 21:14:10 +0000 Subject: [PATCH] fix nits --- bridge/opencensus/metric.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge/opencensus/metric.go b/bridge/opencensus/metric.go index e0d197e910ff..040dbdfeb8d6 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 {