update go mod
This commit is contained in:
@ -11,7 +11,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.zhangdeman.cn/zhangdeman/util"
|
||||
"git.zhangdeman.cn/zhangdeman/wrapper"
|
||||
)
|
||||
|
||||
// NewRuntime 获取runtime实例
|
||||
@ -22,7 +22,7 @@ import (
|
||||
func NewRuntime(traceID string, stackOffset int) *Runtime {
|
||||
if len(traceID) == 0 {
|
||||
// 若不指定 trace id , 随机生成
|
||||
traceID = util.String.Md5(util.String.GenRandomMd5())
|
||||
traceID = wrapper.StringFromRandom(32, "").Md5().Value
|
||||
}
|
||||
|
||||
if stackOffset < 0 {
|
||||
|
Reference in New Issue
Block a user