支持多链路
This commit is contained in:
1 parent
5e3e16025c
commit
5078403569
1 file changed
+2
-1
@@ -20,7 +20,8 @@ func Trace() gin.HandlerFunc {
|
||||
} else {
|
||||
sp = opentracing.StartSpan(opName, opentracing.ChildOf(wireContext))
|
||||
}
|
||||
defer sp.Finish()
|
||||
ctx.Set("traceSpan", sp)
|
||||
ctx.Next()
|
||||
sp.Finish()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user