harden article generation reliability
Deployment Config CI / Deployment Config (push) Successful in 24s
Backend CI / Backend (push) Successful in 14m12s

This commit is contained in:
2026-05-05 23:43:10 +08:00
parent 3c912949e4
commit 65e9b7e293
24 changed files with 1259 additions and 52 deletions
@@ -33,6 +33,13 @@ func registerInternalMetricsRoutes(app *bootstrap.App) {
metrics.GET("/monitoring/heartbeat-snapshots/prometheus", func(c *gin.Context) {
snapshotPrometheusHandler.ServeHTTP(c.Writer, c.Request)
})
metrics.GET("/generation/tasks", func(c *gin.Context) {
response.Success(c, tenantapp.GenerationTaskMetricsSnapshotValue())
})
generationTasksPrometheusHandler := tenantapp.GenerationTaskMetricsPrometheusHandler()
metrics.GET("/generation/tasks/prometheus", func(c *gin.Context) {
generationTasksPrometheusHandler.ServeHTTP(c.Writer, c.Request)
})
}
func internalMetricsAuthMiddleware(app *bootstrap.App) gin.HandlerFunc {