Skip to content

Commit

Permalink
Fix With{View,Reader} option in prom exporter test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Oct 21, 2022
1 parent c4e2864 commit bc8288a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exporters/prometheus/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ func TestPrometheusExporter(t *testing.T) {

provider := metric.NewMeterProvider(
metric.WithResource(res),
metric.WithReader(exporter, customBucketsView, defaultView),
metric.WithReader(exporter),
metric.WithView(customBucketsView, defaultView),
)
meter := provider.Meter("testmeter")

Expand Down

0 comments on commit bc8288a

Please sign in to comment.