Skip to content

Commit 84847ff

Browse files
committed
start api call method
1 parent f36afc9 commit 84847ff

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scouterx/common/netdata/apicallstep.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func NewApiCallStep() *ApiCallStep {
1616
return step
1717
}
1818

19-
func (s *ApiCallStep) ApiCallStep() byte {
19+
func (s *ApiCallStep) GetStepType() byte {
2020
return APICALL
2121
}
2222

scouterx/strace/tracemain.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,8 @@ func EndApiCall(ctx context.Context, step *netdata.ApiCallStep, err error) {
549549
return
550550
}
551551
step.Elapsed = util.MillisToNow(tctx.StartTime) - step.StartTime
552+
tctx.ApicallCount++
553+
tctx.ApicallTime += step.Elapsed
552554
if err != nil {
553555
step.Error = netio.SendError(err.Error())
554556
if tctx.Error == 0 {

0 commit comments

Comments
 (0)