处理没有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
@@ -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)
}