fix issue for assert

This commit is contained in:
hexiaoting 2020-11-27 11:21:22 +08:00
parent 2523f8f0c6
commit 024848cc1b

View File

@ -110,7 +110,7 @@ OpenTelemetrySpanHolder::~OpenTelemetrySpanHolder()
// First of all, return old value of current span.
auto & thread = CurrentThread::get();
assert(thread.thread_trace_context.span_id = span_id);
assert(thread.thread_trace_context.span_id == span_id);
thread.thread_trace_context.span_id = parent_span_id;
// Not sure what's the best way to access the log from here.