Skip to content

Commit

Permalink
fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Dec 19, 2022
1 parent 0c0af9e commit b3eef31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge/opencensus/metric.go
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 b3eef31

Please sign in to comment.