diff --git a/scouterx/common/netdata/apicallstep.go b/scouterx/common/netdata/apicallstep.go index 4a645fe..6efb60d 100644 --- a/scouterx/common/netdata/apicallstep.go +++ b/scouterx/common/netdata/apicallstep.go @@ -16,7 +16,7 @@ func NewApiCallStep() *ApiCallStep { return step } -func (s *ApiCallStep) ApiCallStep() byte { +func (s *ApiCallStep) GetStepType() byte { return APICALL } diff --git a/scouterx/strace/tracemain.go b/scouterx/strace/tracemain.go index ceb0c86..fde8e3f 100644 --- a/scouterx/strace/tracemain.go +++ b/scouterx/strace/tracemain.go @@ -549,6 +549,8 @@ func EndApiCall(ctx context.Context, step *netdata.ApiCallStep, err error) { return } step.Elapsed = util.MillisToNow(tctx.StartTime) - step.StartTime + tctx.ApicallCount++ + tctx.ApicallTime += step.Elapsed if err != nil { step.Error = netio.SendError(err.Error()) if tctx.Error == 0 {