From 8d45dec7eeaedcdc823a040c56e60720abfb9119 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Tue, 26 Nov 2024 00:22:18 -0800 Subject: [PATCH] [PROMETHEUS_EXPORTER] Fix default for emitting otel_scope attributes (#3171) --- exporters/prometheus/src/exporter_options.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporters/prometheus/src/exporter_options.cc b/exporters/prometheus/src/exporter_options.cc index a9de8f4eb4..2ac24b635d 100644 --- a/exporters/prometheus/src/exporter_options.cc +++ b/exporters/prometheus/src/exporter_options.cc @@ -33,7 +33,7 @@ inline bool GetPrometheusWithoutOtelScope() auto exists = opentelemetry::sdk::common::GetBoolEnvironmentVariable(kPrometheusWithoutOtelScope, setting); - return exists ? setting : true; + return exists ? setting : false; } inline bool GetPrometheusPopulateTargetInfo()