支持多链路

This commit is contained in:
linwenxiang committed 2020-10-30 17:16:47 +08:00
1 parent 5e3e16025c
commit 5078403569
1 file changed
+2 -1
+2 -1
View File
@@ -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()
}
}