From 51bd2f0f9b962916abe1e81a1c36b52afe976f13 Mon Sep 17 00:00:00 2001 From: Saransh Shankar <103821431+Wise-Wizard@users.noreply.github.com> Date: Tue, 25 Jun 2024 21:50:16 +0530 Subject: [PATCH] Update internal/metrics/benchmark_test.go Co-authored-by: Yuri Shkuro Signed-off-by: Saransh Shankar <103821431+Wise-Wizard@users.noreply.github.com> --- internal/metrics/benchmark_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/metrics/benchmark_test.go b/internal/metrics/benchmark_test.go index e43d3e07a52..a96545aa5c7 100644 --- a/internal/metrics/benchmark_test.go +++ b/internal/metrics/benchmark_test.go @@ -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), )