Skip to content

Commit

Permalink
增加:手动埋点
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Oct 17, 2023
1 parent 36b91db commit d0a659f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions traceDatabaseDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func TraceDatabase() *TraceDatabaseDetail {
CallMethod: "",
CallType: eumCallType.Database,
StartTs: time.Now().UnixMicro(),
EndTs: time.Now().UnixMicro(),
},
}

Expand Down
1 change: 1 addition & 0 deletions traceHandDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func TraceHand(name string) *TraceHandDetail {
CallMethod: "",
CallType: eumCallType.Hand,
StartTs: time.Now().UnixMicro(),
EndTs: time.Now().UnixMicro(),
},
Name: name,
}
Expand Down
1 change: 1 addition & 0 deletions traceRedisDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func TraceRedis(redisMethod string, key string, field string) *TraceRedisDetail
CallMethod: redisMethod,
CallType: eumCallType.Redis,
StartTs: time.Now().UnixMicro(),
EndTs: time.Now().UnixMicro(),
},
Key: key,
Field: field,
Expand Down

0 comments on commit d0a659f

Please sign in to comment.