feat(monitor):添加模型渠道监控

This commit is contained in:
qian committed 2026-05-23 13:33:29 +08:00
1 parent 33ab33ff29
commit f0160c57d8
31 files changed
+1348 -9

No files matched your search

+4
View File
@@ -86,6 +86,9 @@ var (
// Initialize async usage log writer
common.InitUsageLogWriter()
// Initialize async channel error writer
common.InitChannelErrorWriter()
// Initialize async error log writer
response.InitErrorLogWriter()
@@ -285,6 +288,7 @@ var (
// Flush usage log writer on shutdown (s.Run blocks until server stops)
defer plugin.Shutdown(ctx)
defer common.CloseChannelErrorWriter()
defer common.CloseUsageLogWriter()
defer response.CloseErrorLogWriter()