Skip to content

Commit

Permalink
start api call method
Browse files Browse the repository at this point in the history
  • Loading branch information
gunlee01 committed Jan 20, 2021
1 parent f36afc9 commit 84847ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scouterx/common/netdata/apicallstep.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func NewApiCallStep() *ApiCallStep {
return step
}

func (s *ApiCallStep) ApiCallStep() byte {
func (s *ApiCallStep) GetStepType() byte {
return APICALL
}

Expand Down
2 changes: 2 additions & 0 deletions scouterx/strace/tracemain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 84847ff

Please sign in to comment.