mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
fix missing trace id in gctx.GetInitCtx (#2562)
This commit is contained in:
@ -21,5 +21,5 @@ var (
|
||||
)
|
||||
|
||||
func main() {
|
||||
Main.Run(gctx.New())
|
||||
Main.Run(gctx.GetInitCtx())
|
||||
}
|
||||
|
||||
@ -20,5 +20,5 @@ var (
|
||||
)
|
||||
|
||||
func main() {
|
||||
Sub.Run(gctx.New())
|
||||
Sub.Run(gctx.GetInitCtx())
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx := gctx.New()
|
||||
ctx := gctx.GetInitCtx()
|
||||
g.Log().Debug(ctx, `this is main process`)
|
||||
if err := gproc.ShellRun(ctx, `go run sub/sub.go`); err != nil {
|
||||
panic(err)
|
||||
|
||||
@ -6,6 +6,6 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx := gctx.New()
|
||||
ctx := gctx.GetInitCtx()
|
||||
g.Log().Debug(ctx, `this is sub process`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user