diff --git a/exporters/prometheus/src/collector.cc b/exporters/prometheus/src/collector.cc index f0937b6f4d..9082f49f6f 100644 --- a/exporters/prometheus/src/collector.cc +++ b/exporters/prometheus/src/collector.cc @@ -39,7 +39,7 @@ std::vector PrometheusCollector::Collect() cons collection_lock_.lock(); std::vector result; - + bool populate_target_info = populate_target_info_; reader_->Collect([&result, populate_target_info](sdk::metrics::ResourceMetrics &metric_data) { auto prometheus_metric_data =