feat: pyroscope integrate

This commit is contained in:
Seefs
2025-12-13 13:49:38 +08:00
parent 7d586ef507
commit bdfc875775
4 changed files with 89 additions and 17 deletions
+5
View File
@@ -124,6 +124,11 @@ func main() {
common.SysLog("pprof enabled")
}
err = common.StartPyroScope()
if err != nil {
common.SysError(fmt.Sprintf("start pyroscope error : %v", err))
}
// Initialize HTTP server
server := gin.New()
server.Use(gin.CustomRecovery(func(c *gin.Context, err any) {