From d5edbecc82fe77b1b15eb4065e6e05bbc36b8a67 Mon Sep 17 00:00:00 2001 From: Tianlin Zhao Date: Thu, 20 Aug 2020 13:48:02 -0400 Subject: [PATCH] resolving Null issue of span --- .../opentelemetry/trace/propagation/http_trace_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)