[fix](fe ut) Fix set traceid failed #26808

related to #26605
This commit is contained in:
zhiqiang
2023-11-11 20:55:10 -06:00
committed by GitHub
parent 12b2b0f366
commit ad754cb58f
2 changed files with 8 additions and 0 deletions

View File

@ -699,6 +699,10 @@ public class ConnectContext {
}
}
public void setTraceId(String traceId) {
this.traceId = traceId;
}
public String traceId() {
return traceId;
}

View File

@ -63,6 +63,10 @@ public class VariableVarCallbacks {
if (innerParts.length != 2) {
continue;
}
if (innerParts[0].equals("trace_id")) {
ConnectContext.get().setTraceId(innerParts[1]);
break;
}
}
}
}