minor namespace fix

Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
Pratik Mankawde
2026-06-01 16:07:58 +01:00
parent 7c09c38a5b
commit 20a6274a48

View File

@@ -465,9 +465,7 @@ SpanGuard::addEvent(std::string_view name, std::initializer_list<EventAttribute>
// OTel's AddEvent template requires a key-value-iterable; a plain
// std::vector<std::pair<...>> doesn't satisfy is_key_value_iterable.
// Wrap in nostd::span over the vector's storage so the SDK accepts it.
std::vector<std::pair<
opentelemetry::noopentelemetry::nostd::string_view,
opentelemetry::common::AttributeValue>>
std::vector<std::pair<opentelemetry::nostd::string_view, opentelemetry::common::AttributeValue>>
otelAttrs;
otelAttrs.reserve(attrs.size());