shouldBindJson 使用错误
Build docker and publish / build (20.15.1) (push) Successful in 7m51s

This commit is contained in:
2026-03-06 01:30:39 -08:00
parent 67d2c8cca8
commit 7914b2aa78
5 changed files with 111 additions and 87 deletions
+8 -5
View File
@@ -107,11 +107,14 @@ func (m *Service) Start() {
MinVersion: tls.VersionTLS12,
},
}
trace.StartAgent(trace.Config{
Name: "ppanel",
Sampler: 1.0,
Batcher: "",
})
traceCfg := m.svc.Config.Trace
if traceCfg.Name == "" {
traceCfg.Name = "ppanel"
}
if traceCfg.Sampler == 0 {
traceCfg.Sampler = 1.0
}
trace.StartAgent(traceCfg)
proc.AddShutdownListener(func() {
trace.StopAgent()
})