feat: 尝试添加 tracing

This commit is contained in:
2025-01-22 12:56:41 +08:00
parent 9d82d63a64
commit 275221adbd
7 changed files with 415 additions and 2 deletions
+3
View File
@@ -4,6 +4,7 @@ import (
"github.com/suyiiyii/hertz101/app/user/biz/dal"
"github.com/suyiiyii/hertz101/app/user/biz/dal/mysql"
"github.com/suyiiyii/hertz101/app/user/biz/dal/query"
"github.com/suyiiyii/hertz101/common/mtl"
"net"
"time"
@@ -28,6 +29,8 @@ func main() {
query.Use(mysql.DB)
opts := kitexInit()
mtl.InitTracing(conf.GetConf().Kitex.Service)
svr := userservice.NewServer(new(UserServiceImpl), opts...)
err := svr.Run()