mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 23:55:36 +00:00
feat: support signoz (#5218)
* feat: support signoz * chore: restructure otel
This commit is contained in:
@@ -88,3 +88,6 @@ CONFIG_JSON_PATH=
|
||||
# # 日志来源ID前缀
|
||||
# CHAT_LOG_SOURCE_ID_PREFIX=fastgpt-
|
||||
|
||||
# Signoz
|
||||
SIGNOZ_BASE_URL=
|
||||
SIGNOZ_SERVICE_NAME=
|
||||
|
@@ -18,7 +18,8 @@ export async function register() {
|
||||
{ startCron },
|
||||
{ startTrainingQueue },
|
||||
{ preLoadWorker },
|
||||
{ loadSystemModels }
|
||||
{ loadSystemModels },
|
||||
{ connectSignoz }
|
||||
] = await Promise.all([
|
||||
import('@fastgpt/service/common/mongo/init'),
|
||||
import('@fastgpt/service/common/mongo/index'),
|
||||
@@ -30,9 +31,13 @@ export async function register() {
|
||||
import('@/service/common/system/cron'),
|
||||
import('@/service/core/dataset/training/utils'),
|
||||
import('@fastgpt/service/worker/preload'),
|
||||
import('@fastgpt/service/core/ai/config/utils')
|
||||
import('@fastgpt/service/core/ai/config/utils'),
|
||||
import('@fastgpt/service/common/otel/trace/register')
|
||||
]);
|
||||
|
||||
// connect to signoz
|
||||
connectSignoz();
|
||||
|
||||
// 执行初始化流程
|
||||
systemStartCb();
|
||||
initGlobalVariables();
|
||||
|
Reference in New Issue
Block a user