Skip to content

Commit

Permalink
resolving Null issue of span
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 20, 2020
1 parent 51a380a commit d5edbec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class HttpTraceContext : public HTTPTextFormat<T>
{
return;
}
span_context = nostd::get<int>(span).GetContext();
span_context = nostd::get<nostd::shared_ptr<trace::Span>>(span).get().GetContext();
}

static TraceId GenerateTraceIdFromString(nostd::string_view trace_id)
Expand Down

0 comments on commit d5edbec

Please sign in to comment.