fix dify version

pull/21471/head
hieheihei 11 months ago
parent 6f5d217cf7
commit c4770c5ebf

@ -39,7 +39,7 @@ class TraceClient:
self.resource = Resource( self.resource = Resource(
attributes={ attributes={
ResourceAttributes.SERVICE_NAME: service_name, 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.DEPLOYMENT_ENVIRONMENT: f"{dify_config.DEPLOY_ENV}-{dify_config.EDITION}",
ResourceAttributes.HOST_NAME: socket.gethostname(), ResourceAttributes.HOST_NAME: socket.gethostname(),
} }

Loading…
Cancel
Save