feat(monitor):添加模型渠道监控
This commit is contained in:
1 parent
33ab33ff29
commit
f0160c57d8
31 files changed
+1348
-9
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user