feat: pyroscope integrate

This commit is contained in:
Seefs
2025-12-13 13:49:38 +08:00
parent b58fa3debc
commit fcafadc6bb
4 changed files with 89 additions and 17 deletions

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) {