From 2d49291f8bc314d6b4e85150bdcca636babe82d6 Mon Sep 17 00:00:00 2001 From: Matthijs Brobbel Date: Wed, 27 Sep 2023 11:40:35 +0200 Subject: [PATCH] Fix variable shadowing --- exporters/otlp/src/otlp_recordable_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporters/otlp/src/otlp_recordable_utils.cc b/exporters/otlp/src/otlp_recordable_utils.cc index c330f60a44..b14f6edfab 100644 --- a/exporters/otlp/src/otlp_recordable_utils.cc +++ b/exporters/otlp/src/otlp_recordable_utils.cc @@ -94,9 +94,9 @@ void OtlpRecordableUtils::PopulateRequest( scope_spans->set_schema_url(input_scope_spans.first->GetSchemaURL()); // Add all spans to this scope spans - for (auto &input_scope_spans : input_scope_spans.second) + for (auto &input_span : input_scope_spans.second) { - *scope_spans->add_spans() = std::move(input_scope_spans->span()); + *scope_spans->add_spans() = std::move(input_span->span()); } } }