diff --git a/trace/baseTraceDetail.go b/trace/baseTraceDetail.go index b6e56832e..c7611457a 100644 --- a/trace/baseTraceDetail.go +++ b/trace/baseTraceDetail.go @@ -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() }