From c4770c5ebf22c459abf5e56aa59f1d75918d20c0 Mon Sep 17 00:00:00 2001 From: hieheihei <270985384@qq.com> Date: Thu, 3 Jul 2025 14:48:37 +0800 Subject: [PATCH] fix dify version --- api/core/ops/aliyun_trace/data_exporter/traceclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/ops/aliyun_trace/data_exporter/traceclient.py b/api/core/ops/aliyun_trace/data_exporter/traceclient.py index 1f0ff060d7..ba5ac3f420 100644 --- a/api/core/ops/aliyun_trace/data_exporter/traceclient.py +++ b/api/core/ops/aliyun_trace/data_exporter/traceclient.py @@ -39,7 +39,7 @@ class TraceClient: self.resource = Resource( attributes={ ResourceAttributes.SERVICE_NAME: service_name, - ResourceAttributes.SERVICE_VERSION: f"dify-{dify_config.CURRENT_VERSION}-{dify_config.COMMIT_SHA}", + ResourceAttributes.SERVICE_VERSION: f"dify-{dify_config.project.version}-{dify_config.COMMIT_SHA}", ResourceAttributes.DEPLOYMENT_ENVIRONMENT: f"{dify_config.DEPLOY_ENV}-{dify_config.EDITION}", ResourceAttributes.HOST_NAME: socket.gethostname(), }