feat: 尝试添加 tracing
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user