集成 otel 记录接口性能数据
This commit is contained in:
@@ -23,6 +23,12 @@ func RunApp(pCtx context.Context) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("初始化依赖失败: %w", err)
|
||||
}
|
||||
defer func() {
|
||||
err := base.Close()
|
||||
if err != nil {
|
||||
slog.Error("关闭依赖失败", "error", err)
|
||||
}
|
||||
}()
|
||||
|
||||
// 运行服务
|
||||
g.Go(func() error {
|
||||
|
||||
Reference in New Issue
Block a user