Skip to content

Commit

Permalink
Update internal/metrics/benchmark_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yuri Shkuro <[email protected]>
Signed-off-by: Saransh Shankar <[email protected]>
  • Loading branch information
Wise-Wizard and yurishkuro authored Jun 25, 2024
1 parent 29f6382 commit 51bd2f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/metrics/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ func setupPrometheusFactory() metrics.Factory {
func setupOTELFactory(b *testing.B) metrics.Factory {
registry := prometheus.NewRegistry()
exporter, err := promExporter.New(promExporter.WithRegisterer(registry))
if err != nil {
log.Fatalf("Failed to create Prometheus exporter: %v", err)
}
require.NoError(b, err)
meterProvider := metric.NewMeterProvider(
metric.WithReader(exporter),
)
Expand Down

0 comments on commit 51bd2f0

Please sign in to comment.