处理没有traceid的BUG

This commit is contained in:
Yun
2025-04-02 20:26:27 +08:00
parent b5e3b6088b
commit c14d65c46a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -448,7 +448,7 @@ func (c *Cluster) doTask(ctx context.Context, taskId string) {
} }
}() }()
ctx = context.WithValue(ctx, "trace_id", uuid.NewV4().String) ctx = context.WithValue(ctx, "trace_id", uuid.NewV4().String())
// 执行任务 // 执行任务
t.Callback(ctx, t.ExtendData) t.Callback(ctx, t.ExtendData)
+1 -1
View File
@@ -288,7 +288,7 @@ func (s *Single) doTask(ctx context.Context, call func(ctx context.Context, exte
} }
}() }()
ctx = context.WithValue(ctx, "trace_id", uuid.NewV4().String) ctx = context.WithValue(ctx, "trace_id", uuid.NewV4().String())
return call(ctx, extend) return call(ctx, extend)
} }