Skip to content

Commit d5d7b74

Browse files
committed
misc
1 parent c9c9c23 commit d5d7b74

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scouterx/netio/tcpclient/handlers.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,13 @@ func GetGoroutineDetail(param netdata.Pack) *netdata.MapPack {
220220

221221
paramPack, ok := param.(*netdata.MapPack);
222222
if !ok {
223+
p.Put("Stack Trace", "[info] scouter request param error.");
223224
return p
224225
}
225-
tctx := tctxmanager.GetTraceContextByTxid(paramPack.GetInt64("txid"))
226+
txid := paramPack.GetInt64("txid")
227+
tctx := tctxmanager.GetTraceContextByTxid(txid)
226228
if tctx == nil {
229+
p.Put("Stack Trace", "[info] no traceContext. txid:" + util.IntToXlogString32(txid))
227230
return p
228231
}
229232
goid := tctx.Goid

0 commit comments

Comments
 (0)