Skip to content

Commit

Permalink
完成链路追踪调整
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Dec 31, 2023
1 parent 12cab31 commit 3e5aa86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions trace/baseTraceDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ func (receiver *BaseTraceDetail) End(err error) {
receiver.UseTs = time.Duration(receiver.EndTs-receiver.StartTs) * time.Microsecond

if err != nil {
receiver.Exception.ExceptionIsException = true
receiver.Exception.ExceptionMessage = err.Error()
receiver.Exception = &ExceptionStack{
ExceptionIsException: true,
ExceptionMessage: err.Error(),
}
// 调用者
receiver.Exception.ExceptionCallFile, receiver.Exception.ExceptionCallFuncName, receiver.Exception.ExceptionCallLine = GetCallerInfo()
}
Expand Down

0 comments on commit 3e5aa86

Please sign in to comment.