fix wrong span_id in full link tracing

This commit is contained in:
nroskill
2023-03-06 04:41:14 +00:00
committed by ob-robot
parent 4f2ab1f735
commit 03cafacec1
3 changed files with 13 additions and 4 deletions

View File

@ -54,7 +54,7 @@ TEST(TestTrace, basic_test)
FLUSH_TRACE();
auto t = std::thread([=]() {
// RPC框架端完成初始化
OBTRACE->init(trace_id, proxy->span_id_, (auto_flush << 7) + level);
OBTRACE->init(trace_id, proxy->get_span_id(), (auto_flush << 7) + level);
//
FLTSpanGuard(ObSql);
FLT_SET_TAG(sql_id, 123);