Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Dec 15, 2022
1 parent 50f9f55 commit 29d8970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge/opencensus/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ 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{
manager: metricproducer.GlobalManager(),
}
}

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 {
Expand Down

0 comments on commit 29d8970

Please sign in to comment.