upgrade: update wrapper

This commit is contained in:
2025-10-13 17:23:56 +08:00
parent 2779077bc5
commit b7b9fb5f8a
3 changed files with 18 additions and 8 deletions

View File

@ -11,7 +11,7 @@ import (
"sync"
"time"
"git.zhangdeman.cn/zhangdeman/wrapper"
"git.zhangdeman.cn/zhangdeman/wrapper/op_string"
)
// NewRuntime 获取runtime实例
@ -22,7 +22,7 @@ import (
func NewRuntime(traceID string, stackOffset int) *Runtime {
if len(traceID) == 0 {
// 若不指定 trace id , 随机生成
traceID = wrapper.StringFromRandom(32, "").Md5().Value
traceID = op_string.Md5(op_string.Random(32, "")).Value
}
if stackOffset < 0 {