diff --git a/api/include/opentelemetry/trace/propagation/http_trace_context.h b/api/include/opentelemetry/trace/propagation/http_trace_context.h index 41a7a711ec..f803cafa6d 100644 --- a/api/include/opentelemetry/trace/propagation/http_trace_context.h +++ b/api/include/opentelemetry/trace/propagation/http_trace_context.h @@ -91,7 +91,7 @@ class HttpTraceContext : public HTTPTextFormat { return; } - span_context = nostd::get(span).GetContext(); + span_context = nostd::get>(span).get().GetContext(); } static TraceId GenerateTraceIdFromString(nostd::string_view trace_id)