From a0e2f233199f6402a7e6dc3ee446986eb617ceab Mon Sep 17 00:00:00 2001 From: Tianlin Zhao Date: Thu, 20 Aug 2020 13:28:22 -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 194b768df7..7764853d1a 100644 --- a/api/include/opentelemetry/trace/propagation/http_trace_context.h +++ b/api/include/opentelemetry/trace/propagation/http_trace_context.h @@ -87,7 +87,7 @@ class HttpTraceContext : public HTTPTextFormat const nostd::string_view span_key = "current-span"; context::Context ctx(context); context::ContextValue span = ctx.GetValue(span_key); - if ((int)span == 0) + if ((int64_t)span == 0) { return; }