Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
gunlee01 committed Feb 21, 2021
1 parent c9c9c23 commit d5d7b74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scouterx/netio/tcpclient/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,13 @@ func GetGoroutineDetail(param netdata.Pack) *netdata.MapPack {

paramPack, ok := param.(*netdata.MapPack);
if !ok {
p.Put("Stack Trace", "[info] scouter request param error.");
return p
}
tctx := tctxmanager.GetTraceContextByTxid(paramPack.GetInt64("txid"))
txid := paramPack.GetInt64("txid")
tctx := tctxmanager.GetTraceContextByTxid(txid)
if tctx == nil {
p.Put("Stack Trace", "[info] no traceContext. txid:" + util.IntToXlogString32(txid))
return p
}
goid := tctx.Goid
Expand Down

0 comments on commit d5d7b74

Please sign in to comment.