Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat: Add Aliyun LLM Observability Integration (#21471)
heyszta201e9faee43
diff --git a/api/core/ops/aliyun_trace/__init__.py b/api/core/ops/aliyun_trace/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/api/core/ops/aliyun_trace/aliyun_trace.py b/api/core/ops/aliyun_trace/aliyun_trace.pynew file mode 100644index 00000000000..163b5d03077--- /dev/null+++ b/api/core/ops/aliyun_trace/aliyun_trace.py@@ -0,0 +1,486 @@+import json+import logging+from collections.abc import Sequence+from typing import Optional+from urllib.parse import urljoin++from opentelemetry.trace import Status, StatusCode+from sqlalchemy.orm import Session, sessionmaker++from core.ops.aliyun_trace.data_exporter.traceclient import (+ TraceClient,+ convert_datetime_to_nanoseconds,+ convert_to_span_id,+ convert_to_trace_id,+ generate_span_id,+)+from core.ops.aliyun_trace.entities.aliyun_trace_entity import SpanData+from core.ops.aliyun_trace.entities.semconv import (+ GEN_AI_COMPLETION,+ GEN_AI_FRAMEWORK,+ GEN_AI_MODEL_NAME,+ GEN_AI_PROMPT,+ GEN_AI_PROMPT_TEMPLATE_TEMPLATE,+ GEN_AI_PROMPT_TEMPLATE_VARIABLE,+ GEN_AI_RESPONSE_FINISH_REASON,+ GEN_AI_SESSION_ID,+ GEN_AI_SPAN_KIND,+ GEN_AI_SYSTEM,+ GEN_AI_USAGE_INPUT_TOKENS,+ GEN_AI_USAGE_OUTPUT_TOKENS,+ GEN_AI_USAGE_TOTAL_TOKENS,+ GEN_AI_USER_ID,+ INPUT_VALUE,+ OUTPUT_VALUE,+ RETRIEVAL_DOCUMENT,+ RETRIEVAL_QUERY,+ TOOL_DESCRIPTION,+ TOOL_NAME,+ TOOL_PARAMETERS,+ GenAISpanKind,+)+from core.ops.base_trace_instance import BaseTraceInstance+from core.ops.entities.config_entity import AliyunConfig+from core.ops.entities.trace_entity import (+ BaseTraceInfo,+ DatasetRetrievalTraceInfo,+ GenerateNameTraceInfo,+ MessageTraceInfo,+ ModerationTraceInfo,+ SuggestedQuestionTraceInfo,+ ToolTraceInfo,+ WorkflowTraceInfo,+)+from core.rag.models.document import Document+from core.repositories import SQLAlchemyWorkflowNodeExecutionRepository+from core.workflow.entities.workflow_node_execution import (+ WorkflowNodeExecution,+ WorkflowNodeExecutionMetadataKey,+ WorkflowNodeExecutionStatus,+)+from core.workflow.nodes import NodeType+from models import Account, App, EndUser, TenantAccountJoin, WorkflowNodeExecutionTriggeredFrom, db++logger = logging.getLogger(__name__)+++class AliyunDataTrace(BaseTraceInstance):+ def __init__(+ self,+ aliyun_config: AliyunConfig,+ ):+ super().__init__(aliyun_config)+ base_url = aliyun_config.endpoint.rstrip("/")+ endpoint = urljoin(base_url, f"adapt_{aliyun_config.license_key}/api/otlp/traces")+ self.trace_client = TraceClient(service_name=aliyun_config.app_name, endpoint=endpoint)++ def trace(self, trace_info: BaseTraceInfo):+ if isinstance(trace_info, WorkflowTraceInfo):+ self.workflow_trace(trace_info)+ if isinstance(trace_info, MessageTraceInfo):+ self.message_trace(trace_info)+ if isinstance(trace_info, ModerationTraceInfo):+ pass+ if isinstance(trace_info, SuggestedQuestionTraceInfo):+ self.suggested_question_trace(trace_info)+ if isinstance(trace_info, DatasetRetrievalTraceInfo):+ self.dataset_retrieval_trace(trace_info)+ if isinstance(trace_info, ToolTraceInfo):+ self.tool_trace(trace_info)+ if isinstance(trace_info, GenerateNameTraceInfo):+ pass++ def api_check(self):+ return self.trace_client.api_check()++ def get_project_url(self):+ try:+ return self.trace_client.get_project_url()+ except Exception as e:+ logger.info(f"Aliyun get run url failed: {str(e)}", exc_info=True)+ raise ValueError(f"Aliyun get run url failed: {str(e)}")++ def workflow_trace(self, trace_info: WorkflowTraceInfo):+ trace_id = convert_to_trace_id(trace_info.workflow_run_id)+ workflow_span_id = convert_to_span_id(trace_info.workflow_run_id, "workflow")+ self.add_workflow_span(trace_id, workflow_span_id, trace_info)++ workflow_node_executions = self.get_workflow_node_executions(trace_info)+ for node_execution in workflow_node_executions:+ node_span = self.build_workflow_node_span(node_execution, trace_id, trace_info, workflow_span_id)+ self.trace_client.add_span(node_span)++ def message_trace(self, trace_info: MessageTraceInfo):+ message_data = trace_info.message_data+ if message_data is None:+ return+ message_id = trace_info.message_id++ user_id = message_data.from_account_id+ if message_data.from_end_user_id:+ end_user_data: Optional[EndUser] = (+ db.session.query(EndUser).filter(EndUser.id == message_data.from_end_user_id).first()+ )+ if end_user_data is not None:+ user_id = end_user_data.session_id++ status: Status = Status(StatusCode.OK)+ if trace_info.error:+ status = Status(StatusCode.ERROR, trace_info.error)++ trace_id = convert_to_trace_id(message_id)+ message_span_id = convert_to_span_id(message_id, "message")+ message_span = SpanData(+ trace_id=trace_id,+ parent_span_id=None,+ span_id=message_span_id,+ name="message",+ start_time=convert_datetime_to_nanoseconds(trace_info.start_time),+ end_time=convert_datetime_to_nanoseconds(trace_info.end_time),+ attributes={+ GEN_AI_SESSION_ID: trace_info.metadata.get("conversation_id", ""),+ GEN_AI_USER_ID: str(user_id),+ GEN_AI_SPAN_KIND: GenAISpanKind.CHAIN.value,+ GEN_AI_FRAMEWORK: "dify",+ INPUT_VALUE: json.dumps(trace_info.inputs, ensure_ascii=False),+ OUTPUT_VALUE: str(trace_info.outputs),+ },+ status=status,+ )+ self.trace_client.add_span(message_span)++ app_model_config = getattr(trace_info.message_data, "app_model_config", {})+ pre_prompt = getattr(app_model_config, "pre_prompt", "")+ inputs_data = getattr(trace_info.message_data, "inputs", {})+ llm_span = SpanData(+ trace_id=trace_id,+ parent_span_id=message_span_id,+ span_id=convert_to_span_id(message_id, "llm"),+ name="llm",+ start_time=convert_datetime_to_nanoseconds(trace_info.start_time),+ end_time=convert_datetime_to_nanoseconds(trace_info.end_time),+ attributes={+ GEN_AI_SESSION_ID: trace_info.metadata.get("conversation_id", ""),+ GEN_AI_USER_ID: str(user_id),+ GEN_AI_SPAN_KIND: GenAISpanKind.LLM.value,+ GEN_AI_FRAMEWORK: "dify",+ GEN_AI_MODEL_NAME: trace_info.metadata.get("ls_model_name", ""),+ GEN_AI_SYSTEM: trace_info.metadata.get("ls_provider", ""),+ GEN_AI_USAGE_INPUT_TOKENS: str(trace_info.message_tokens),+ GEN_AI_USAGE_OUTPUT_TOKENS: str(trace_info.answer_tokens),+ GEN_AI_USAGE_TOTAL_TOKENS: str(trace_info.total_tokens),+ GEN_AI_PROMPT_TEMPLATE_VARIABLE: json.dumps(inputs_data, ensure_ascii=False),+ GEN_AI_PROMPT_TEMPLATE_TEMPLATE: pre_prompt,+ GEN_AI_PROMPT: json.dumps(trace_info.inputs, ensure_ascii=False),+ GEN_AI_COMPLETION: str(trace_info.outputs),+ INPUT_VALUE: json.dumps(trace_info.inputs, ensure_ascii=False),+ OUTPUT_VALUE: str(trace_info.outputs),+ },+ status=status,+ )+ self.trace_client.add_span(llm_span)++ def dataset_retrieval_trace(self, trace_info: DatasetRetrievalTraceInfo):+ if trace_info.message_data is None:+ return+ message_id = trace_info.message_id++ documents_data = extract_retrieval_documents(trace_info.documents)+ dataset_retrieval_span = SpanData(+ trace_id=convert_to_trace_id(message_id),+ parent_span_id=convert_to_span_id(message_id, "message"),+ span_id=generate_span_id(),+ name="dataset_retrieval",+ start_time=convert_datetime_to_nanoseconds(trace_info.start_time),+ end_time=convert_datetime_to_nanoseconds(trace_info.end_time),+ attributes={+ GEN_AI_SPAN_KIND: GenAISpanKind.RETRIEVER.value,+ GEN_AI_FRAMEWORK: "dify",+ RETRIEVAL_QUERY: str(trace_info.inputs),+ RETRIEVAL_DOCUMENT: json.dumps(documents_data, ensure_ascii=False),+ INPUT_VALUE: str(trace_info.inputs),+ OUTPUT_VALUE: json.dumps(documents_data, ensure_ascii=False),+ },+ )+ self.trace_client.add_span(dataset_retrieval_span)++ def tool_trace(self, trace_info: ToolTraceInfo):+ if trace_info.message_data is None:+ return+ message_id = trace_info.message_id++ status: Status = Status(StatusCode.OK)+ if trace_info.error:+ status = Status(StatusCode.ERROR, trace_info.error)++ tool_span = SpanData(+ trace_id=convert_to_trace_id(message_id),+ parent_span_id=convert_to_span_id(message_id, "message"),+ span_id=generate_span_id(),+ name=trace_info.tool_name,+ start_time=convert_datetime_to_nanoseconds(trace_info.start_time),+ end_time=convert_datetime_to_nanoseconds(trace_info.end_time),+ attributes={+ GEN_AI_SPAN_KIND: GenAISpanKind.TOOL.value,+ GEN_AI_FRAMEWORK: "dify",+ TOOL_NAME: trace_info.tool_name,+ TOOL_DESCRIPTION: json.dumps(trace_info.tool_config, ensure_ascii=False),+ TOOL_PARAMETERS: json.dumps(trace_info.tool_inputs, ensure_ascii=False),+ INPUT_VALUE: json.dumps(trace_info.inputs, ensure_ascii=False),+ OUTPUT_VALUE: str(trace_info.tool_outputs),+ },+ status=status,+ )+ self.trace_client.add_span(tool_span)++ def get_workflow_node_executions(self, trace_info: WorkflowTraceInfo) -> Sequence[WorkflowNodeExecution]:+ # through workflow_run_id get all_nodes_execution using repository+ session_factory = sessionmaker(bind=db.engine)+ # Find the app's creator account+ with Session(db.engine, expire_on_commit=False) as session:+ # Get the app to find its creator+ app_id = trace_info.metadata.get("app_id")+ if not app_id:+ raise ValueError("No app_id found in trace_info metadata")++ app = session.query(App).filter(App.id == app_id).first()+ if not app:+ raise ValueError(f"App with id {app_id} not found")++ if not app.created_by:+ raise ValueError(f"App with id {app_id} has no creator (created_by is None)")++ service_account = session.query(Account).filter(Account.id == app.created_by).first()+ if not service_account:+ raise ValueError(f"Creator account with id {app.created_by} not found for app {app_id}")+ current_tenant = (+ session.query(TenantAccountJoin).filter_by(account_id=service_account.id, current=True).first()+ )+ if not current_tenant:+ raise ValueError(f"Current tenant not found for account {service_account.id}")+ service_account.set_tenant_id(current_tenant.tenant_id)+ workflow_node_execution_repository = SQLAlchemyWorkflowNodeExecutionRepository(+ session_factory=session_factory,+ user=service_account,+ app_id=trace_info.metadata.get("app_id"),+ triggered_from=WorkflowNodeExecutionTriggeredFrom.WORKFLOW_RUN,+ )+ # Get all executions for this workflow run+ workflow_node_executions = workflow_node_execution_repository.get_by_workflow_run(+ workflow_run_id=trace_info.workflow_run_id+ )+ return workflow_node_executions++ def build_workflow_node_span(+ self, node_execution: WorkflowNodeExecution, trace_id: int, trace_info: WorkflowTraceInfo, workflow_span_id: int+ ):+ try:+ if node_execution.node_type == NodeType.LLM:+ node_span = self.build_workflow_llm_span(trace_id, workflow_span_id, trace_info, node_execution)+ elif node_execution.node_type == NodeType.KNOWLEDGE_RETRIEVAL:+ node_span = self.build_workflow_retrieval_span(trace_id, workflow_span_id, trace_info, node_execution)+ elif node_execution.node_type == NodeType.TOOL:+ node_span = self.build_workflow_tool_span(trace_id, workflow_span_id, trace_info, node_execution)+ else:+ node_span = self.build_workflow_task_span(trace_id, workflow_span_id, trace_info, node_execution)+ return node_span+ except Exception:+ return None++ def get_workflow_node_status(self, node_execution: WorkflowNodeExecution) -> Status:+ span_status: Status = Status(StatusCode.UNSET)+ if node_execution.status == WorkflowNodeExecutionStatus.SUCCEEDED:+ span_status = Status(StatusCode.OK)+ elif node_execution.status in [WorkflowNodeExecutionStatus.FAILED, WorkflowNodeExecutionStatus.EXCEPTION]:+ span_status = Status(StatusCode.ERROR, str(node_execution.error))+ return span_status++ def build_workflow_task_span(+ self, trace_id: int, workflow_span_id: int, trace_info: WorkflowTraceInfo, node_execution: WorkflowNodeExecution+ ) -> SpanData:+ return SpanData(+ trace_id=trace_id,+ parent_span_id=workflow_span_id,+ span_id=convert_to_span_id(node_execution.id, "node"),+ name=node_execution.title,+ start_time=convert_datetime_to_nanoseconds(node_execution.created_at),+ end_time=convert_datetime_to_nanoseconds(node_execution.finished_at),+ attributes={+ GEN_AI_SESSION_ID: trace_info.metadata.get("conversation_id", ""),+ GEN_AI_SPAN_KIND: GenAISpanKind.TASK.value,+ GEN_AI_FRAMEWORK: "dify",+ INPUT_VALUE: json.dumps(node_execution.inputs, ensure_ascii=False),+ OUTPUT_VALUE: json.dumps(node_execution.outputs, ensure_ascii=False),+ },+ status=self.get_workflow_node_status(node_execution),+ )++ def build_workflow_tool_span(+ self, trace_id: int, workflow_span_id: int, trace_info: WorkflowTraceInfo, node_execution: WorkflowNodeExecution+ ) -> SpanData:+ tool_des = {}+ if node_execution.metadata:+ tool_des = node_execution.metadata.get(WorkflowNodeExecutionMetadataKey.TOOL_INFO, {})+ return SpanData(+ trace_id=trace_id,+ parent_span_id=workflow_span_id,+ span_id=convert_to_span_id(node_execution.id, "node"),+ name=node_execution.title,+ start_time=convert_datetime_to_nanoseconds(node_execution.created_at),+ end_time=convert_datetime_to_nanoseconds(node_execution.finished_at),+ attributes={+ GEN_AI_SPAN_KIND: GenAISpanKind.TOOL.value,+ GEN_AI_FRAMEWORK: "dify",+ TOOL_NAME: node_execution.title,+ TOOL_DESCRIPTION: json.dumps(tool_des, ensure_ascii=False),+ TOOL_PARAMETERS: json.dumps(node_execution.inputs if node_execution.inputs else {}, ensure_ascii=False),+ INPUT_VALUE: json.dumps(node_execution.inputs if node_execution.inputs else {}, ensure_ascii=False),+ OUTPUT_VALUE: json.dumps(node_execution.outputs, ensure_ascii=False),+ },+ status=self.get_workflow_node_status(node_execution),+ )++ def build_workflow_retrieval_span(+ self, trace_id: int, workflow_span_id: int, trace_info: WorkflowTraceInfo, node_execution: WorkflowNodeExecution+ ) -> SpanData:+ input_value = ""+ if node_execution.inputs:+ input_value = str(node_execution.inputs.get("query", ""))+ output_value = ""+ if node_execution.outputs:+ output_value = json.dumps(node_execution.outputs.get("result", []), ensure_ascii=False)+ return SpanData(+ trace_id=trace_id,+ parent_span_id=workflow_span_id,+ span_id=convert_to_span_id(node_execution.id, "node"),+ name=node_execution.title,+ start_time=convert_datetime_to_nanoseconds(node_execution.created_at),+ end_time=convert_datetime_to_nanoseconds(node_execution.finished_at),+ attributes={+ GEN_AI_SPAN_KIND: GenAISpanKind.RETRIEVER.value,+ GEN_AI_FRAMEWORK: "dify",+ RETRIEVAL_QUERY: input_value,+ RETRIEVAL_DOCUMENT: output_value,+ INPUT_VALUE: input_value,+ OUTPUT_VALUE: output_value,+ },+ status=self.get_workflow_node_status(node_execution),+ )++ def build_workflow_llm_span(+ self, trace_id: int, workflow_span_id: int, trace_info: WorkflowTraceInfo, node_execution: WorkflowNodeExecution+ ) -> SpanData:+ process_data = node_execution.process_data or {}+ outputs = node_execution.outputs or {}+ return SpanData(+ trace_id=trace_id,+ parent_span_id=workflow_span_id,+ span_id=convert_to_span_id(node_execution.id, "node"),+ name=node_execution.title,+ start_time=convert_datetime_to_nanoseconds(node_execution.created_at),+ end_time=convert_datetime_to_nanoseconds(node_execution.finished_at),+ attributes={+ GEN_AI_SESSION_ID: trace_info.metadata.get("conversation_id", ""),+ GEN_AI_SPAN_KIND: GenAISpanKind.LLM.value,+ GEN_AI_FRAMEWORK: "dify",+ GEN_AI_MODEL_NAME: process_data.get("model_name", ""),+ GEN_AI_SYSTEM: process_data.get("model_provider", ""),+ GEN_AI_USAGE_INPUT_TOKENS: str(outputs.get("usage", {}).get("prompt_tokens", 0)),+ GEN_AI_USAGE_OUTPUT_TOKENS: str(outputs.get("usage", {}).get("completion_tokens", 0)),+ GEN_AI_USAGE_TOTAL_TOKENS: str(outputs.get("usage", {}).get("total_tokens", 0)),+ GEN_AI_PROMPT: json.dumps(process_data.get("prompts", []), ensure_ascii=False),+ GEN_AI_COMPLETION: str(outputs.get("text", "")),+ GEN_AI_RESPONSE_FINISH_REASON: outputs.get("finish_reason", ""),+ INPUT_VALUE: json.dumps(process_data.get("prompts", []), ensure_ascii=False),+ OUTPUT_VALUE: str(outputs.get("text", "")),+ },+ status=self.get_workflow_node_status(node_execution),+ )++ def add_workflow_span(self, trace_id: int, workflow_span_id: int, trace_info: WorkflowTraceInfo):+ message_span_id = None+ if trace_info.message_id:+ message_span_id = convert_to_span_id(trace_info.message_id, "message")+ user_id = trace_info.metadata.get("user_id")+ status: Status = Status(StatusCode.OK)+ if trace_info.error:+ status = Status(StatusCode.ERROR, trace_info.error)+ if message_span_id: # chatflow+ message_span = SpanData(+ trace_id=trace_id,+ parent_span_id=None,+ span_id=message_span_id,+ name="message",+ start_time=convert_datetime_to_nanoseconds(trace_info.start_time),+ end_time=convert_datetime_to_nanoseconds(trace_info.end_time),+ attributes={+ GEN_AI_SESSION_ID: trace_info.metadata.get("conversation_id", ""),+ GEN_AI_USER_ID: str(user_id),+ GEN_AI_SPAN_KIND: GenAISpanKind.CHAIN.value,+ GEN_AI_FRAMEWORK: "dify",+ INPUT_VALUE: trace_info.workflow_run_inputs.get("sys.query", ""),+ OUTPUT_VALUE: json.dumps(trace_info.workflow_run_outputs, ensure_ascii=False),+ },+ status=status,+ )+ self.trace_client.add_span(message_span)++ workflow_span = SpanData(+ trace_id=trace_id,+ parent_span_id=message_span_id,+ span_id=workflow_span_id,+ name="workflow",+ start_time=convert_datetime_to_nanoseconds(trace_info.start_time),+ end_time=convert_datetime_to_nanoseconds(trace_info.end_time),+ attributes={+ GEN_AI_USER_ID: str(user_id),+ GEN_AI_SPAN_KIND: GenAISpanKind.CHAIN.value,+ GEN_AI_FRAMEWORK: "dify",+ INPUT_VALUE: json.dumps(trace_info.workflow_run_inputs, ensure_ascii=False),+ OUTPUT_VALUE: json.dumps(trace_info.workflow_run_outputs, ensure_ascii=False),+ },+ status=status,+ )+ self.trace_client.add_span(workflow_span)++ def suggested_question_trace(self, trace_info: SuggestedQuestionTraceInfo):+ message_id = trace_info.message_id+ status: Status = Status(StatusCode.OK)+ if trace_info.error:+ status = Status(StatusCode.ERROR, trace_info.error)+ suggested_question_span = SpanData(+ trace_id=convert_to_trace_id(message_id),+ parent_span_id=convert_to_span_id(message_id, "message"),+ span_id=convert_to_span_id(message_id, "suggested_question"),+ name="suggested_question",+ start_time=convert_datetime_to_nanoseconds(trace_info.start_time),+ end_time=convert_datetime_to_nanoseconds(trace_info.end_time),+ attributes={+ GEN_AI_SPAN_KIND: GenAISpanKind.LLM.value,+ GEN_AI_FRAMEWORK: "dify",+ GEN_AI_MODEL_NAME: trace_info.metadata.get("ls_model_name", ""),+ GEN_AI_SYSTEM: trace_info.metadata.get("ls_provider", ""),+ GEN_AI_PROMPT: json.dumps(trace_info.inputs, ensure_ascii=False),+ GEN_AI_COMPLETION: json.dumps(trace_info.suggested_question, ensure_ascii=False),+ INPUT_VALUE: json.dumps(trace_info.inputs, ensure_ascii=False),+ OUTPUT_VALUE: json.dumps(trace_info.suggested_question, ensure_ascii=False),+ },+ status=status,+ )+ self.trace_client.add_span(suggested_question_span)+++def extract_retrieval_documents(documents: list[Document]):+ documents_data = []+ for document in documents:+ document_data = {+ "content": document.page_content,+ "metadata": {+ "dataset_id": document.metadata.get("dataset_id"),+ "doc_id": document.metadata.get("doc_id"),+ "document_id": document.metadata.get("document_id"),+ },+ "score": document.metadata.get("score"),+ }+ documents_data.append(document_data)+ return documents_datadiff --git a/api/core/ops/aliyun_trace/data_exporter/__init__.py b/api/core/ops/aliyun_trace/data_exporter/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/api/core/ops/aliyun_trace/data_exporter/traceclient.py b/api/core/ops/aliyun_trace/data_exporter/traceclient.pynew file mode 100644index 00000000000..ba5ac3f420d--- /dev/null+++ b/api/core/ops/aliyun_trace/data_exporter/traceclient.py@@ -0,0 +1,200 @@+import hashlib+import logging+import random+import socket+import threading+import uuid+from collections import deque+from collections.abc import Sequence+from datetime import datetime+from typing import Optional++import requests+from opentelemetry import trace as trace_api+from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter+from opentelemetry.sdk.resources import Resource+from opentelemetry.sdk.trace import ReadableSpan+from opentelemetry.sdk.util.instrumentation import InstrumentationScope+from opentelemetry.semconv.resource import ResourceAttributes++from configs import dify_config+from core.ops.aliyun_trace.entities.aliyun_trace_entity import SpanData++INVALID_SPAN_ID = 0x0000000000000000+INVALID_TRACE_ID = 0x00000000000000000000000000000000++logger = logging.getLogger(__name__)+++class TraceClient:+ def __init__(+ self,+ service_name: str,+ endpoint: str,+ max_queue_size: int = 1000,+ schedule_delay_sec: int = 5,+ max_export_batch_size: int = 50,+ ):+ self.endpoint = endpoint+ self.resource = Resource(+ attributes={+ ResourceAttributes.SERVICE_NAME: service_name,+ 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(),+ }+ )+ self.span_builder = SpanBuilder(self.resource)+ self.exporter = OTLPSpanExporter(endpoint=endpoint)++ self.max_queue_size = max_queue_size+ self.schedule_delay_sec = schedule_delay_sec+ self.max_export_batch_size = max_export_batch_size++ self.queue: deque = deque(maxlen=max_queue_size)+ self.condition = threading.Condition(threading.Lock())+ self.done = False++ self.worker_thread = threading.Thread(target=self._worker, daemon=True)+ self.worker_thread.start()++ self._spans_dropped = False++ def export(self, spans: Sequence[ReadableSpan]):+ self.exporter.export(spans)++ def api_check(self):+ try:+ response = requests.head(self.endpoint, timeout=5)+ if response.status_code == 405:+ return True+ else:+ logger.debug(f"AliyunTrace API check failed: Unexpected status code: {response.status_code}")+ return False+ except requests.exceptions.RequestException as e:+ logger.debug(f"AliyunTrace API check failed: {str(e)}")+ raise ValueError(f"AliyunTrace API check failed: {str(e)}")++ def get_project_url(self):+ return "https://arms.console.aliyun.com/#/llm"++ def add_span(self, span_data: SpanData):+ if span_data is None:+ return+ span: ReadableSpan = self.span_builder.build_span(span_data)+ with self.condition:+ if len(self.queue) == self.max_queue_size:+ if not self._spans_dropped:+ logger.warning("Queue is full, likely spans will be dropped.")+ self._spans_dropped = True++ self.queue.appendleft(span)+ if len(self.queue) >= self.max_export_batch_size:+ self.condition.notify()++ def _worker(self):+ while not self.done:+ with self.condition:+ if len(self.queue) < self.max_export_batch_size and not self.done:+ self.condition.wait(timeout=self.schedule_delay_sec)+ self._export_batch()++ def _export_batch(self):+ spans_to_export: list[ReadableSpan] = []+ with self.condition:+ while len(spans_to_export) < self.max_export_batch_size and self.queue:+ spans_to_export.append(self.queue.pop())++ if spans_to_export:+ try:+ self.exporter.export(spans_to_export)+ except Exception as e:+ logger.debug(f"Error exporting spans: {e}")++ def shutdown(self):+ with self.condition:+ self.done = True+ self.condition.notify_all()+ self.worker_thread.join()+ self._export_batch()+ self.exporter.shutdown()+++class SpanBuilder:+ def __init__(self, resource):+ self.resource = resource+ self.instrumentation_scope = InstrumentationScope(+ __name__,+ "",+ None,+ None,+ )++ def build_span(self, span_data: SpanData) -> ReadableSpan:+ span_context = trace_api.SpanContext(+ trace_id=span_data.trace_id,+ span_id=span_data.span_id,+ is_remote=False,+ trace_flags=trace_api.TraceFlags(trace_api.TraceFlags.SAMPLED),+ trace_state=None,+ )++ parent_span_context = None+ if span_data.parent_span_id is not None:+ parent_span_context = trace_api.SpanContext(+ trace_id=span_data.trace_id,+ span_id=span_data.parent_span_id,+ is_remote=False,+ trace_flags=trace_api.TraceFlags(trace_api.TraceFlags.SAMPLED),+ trace_state=None,+ )++ span = ReadableSpan(+ name=span_data.name,+ context=span_context,+ parent=parent_span_context,+ resource=self.resource,+ attributes=span_data.attributes,+ events=span_data.events,+ links=span_data.links,+ kind=trace_api.SpanKind.INTERNAL,+ status=span_data.status,+ start_time=span_data.start_time,+ end_time=span_data.end_time,+ instrumentation_scope=self.instrumentation_scope,+ )+ return span+++def generate_span_id() -> int:+ span_id = random.getrandbits(64)+ while span_id == INVALID_SPAN_ID:+ span_id = random.getrandbits(64)+ return span_id+++def convert_to_trace_id(uuid_v4: Optional[str]) -> int:+ try:+ uuid_obj = uuid.UUID(uuid_v4)+ return uuid_obj.int+ except Exception as e:+ raise ValueError(f"Invalid UUID input: {e}")+++def convert_to_span_id(uuid_v4: Optional[str], span_type: str) -> int:+ try:+ uuid_obj = uuid.UUID(uuid_v4)+ except Exception as e:+ raise ValueError(f"Invalid UUID input: {e}")+ combined_key = f"{uuid_obj.hex}-{span_type}"+ hash_bytes = hashlib.sha256(combined_key.encode("utf-8")).digest()+ span_id = int.from_bytes(hash_bytes[:8], byteorder="big", signed=False)+ return span_id+++def convert_datetime_to_nanoseconds(start_time_a: Optional[datetime]) -> Optional[int]:+ if start_time_a is None:+ return None+ timestamp_in_seconds = start_time_a.timestamp()+ timestamp_in_nanoseconds = int(timestamp_in_seconds * 1e9)+ return timestamp_in_nanosecondsdiff --git a/api/core/ops/aliyun_trace/entities/__init__.py b/api/core/ops/aliyun_trace/entities/__init__.pynew file mode 100644index 00000000000..e69de29bb2ddiff --git a/api/core/ops/aliyun_trace/entities/aliyun_trace_entity.py b/api/core/ops/aliyun_trace/entities/aliyun_trace_entity.pynew file mode 100644index 00000000000..1caa822cd08--- /dev/null+++ b/api/core/ops/aliyun_trace/entities/aliyun_trace_entity.py@@ -0,0 +1,21 @@+from collections.abc import Sequence+from typing import Optional++from opentelemetry import trace as trace_api+from opentelemetry.sdk.trace import Event, Status, StatusCode+from pydantic import BaseModel, Field+++class SpanData(BaseModel):+ model_config = {"arbitrary_types_allowed": True}++ trace_id: int = Field(..., description="The unique identifier for the trace.")+ parent_span_id: Optional[int] = Field(None, description="The ID of the parent span, if any.")+ span_id: int = Field(..., description="The unique identifier for this span.")+ name: str = Field(..., description="The name of the span.")+ attributes: dict[str, str] = Field(default_factory=dict, description="Attributes associated with the span.")+ events: Sequence[Event] = Field(default_factory=list, description="Events recorded in the span.")+ links: Sequence[trace_api.Link] = Field(default_factory=list, description="Links to other spans.")+ status: Status = Field(default=Status(StatusCode.UNSET), description="The status of the span.")+ start_time: Optional[int] = Field(..., description="The start time of the span in nanoseconds.")+ end_time: Optional[int] = Field(..., description="The end time of the span in nanoseconds.")diff --git a/api/core/ops/aliyun_trace/entities/semconv.py b/api/core/ops/aliyun_trace/entities/semconv.pynew file mode 100644index 00000000000..657cf1da0cb--- /dev/null+++ b/api/core/ops/aliyun_trace/entities/semconv.py@@ -0,0 +1,64 @@+from enum import Enum++# public+GEN_AI_SESSION_ID = "gen_ai.session.id"++GEN_AI_USER_ID = "gen_ai.user.id"++GEN_AI_USER_NAME = "gen_ai.user.name"++GEN_AI_SPAN_KIND = "gen_ai.span.kind"++GEN_AI_FRAMEWORK = "gen_ai.framework"+++# Chain+INPUT_VALUE = "input.value"++OUTPUT_VALUE = "output.value"+++# Retriever+RETRIEVAL_QUERY = "retrieval.query"++RETRIEVAL_DOCUMENT = "retrieval.document"+++# LLM+GEN_AI_MODEL_NAME = "gen_ai.model_name"++GEN_AI_SYSTEM = "gen_ai.system"++GEN_AI_USAGE_INPUT_TOKENS = "gen_ai.usage.input_tokens"++GEN_AI_USAGE_OUTPUT_TOKENS = "gen_ai.usage.output_tokens"++GEN_AI_USAGE_TOTAL_TOKENS = "gen_ai.usage.total_tokens"++GEN_AI_PROMPT_TEMPLATE_TEMPLATE = "gen_ai.prompt_template.template"++GEN_AI_PROMPT_TEMPLATE_VARIABLE = "gen_ai.prompt_template.variable"++GEN_AI_PROMPT = "gen_ai.prompt"++GEN_AI_COMPLETION = "gem_ai.completion"++GEN_AI_RESPONSE_FINISH_REASON = "gen_ai.response.finish_reason"++# Tool+TOOL_NAME = "tool.name"++TOOL_DESCRIPTION = "tool.description"++TOOL_PARAMETERS = "tool.parameters"+++class GenAISpanKind(Enum):+ CHAIN = "CHAIN"+ RETRIEVER = "RETRIEVER"+ RERANKER = "RERANKER"+ LLM = "LLM"+ EMBEDDING = "EMBEDDING"+ TOOL = "TOOL"+ AGENT = "AGENT"+ TASK = "TASK"diff --git a/api/core/ops/entities/config_entity.py b/api/core/ops/entities/config_entity.pyindex 8a2ce585398..cd5d609ef75 100644--- a/api/core/ops/entities/config_entity.py+++ b/api/core/ops/entities/config_entity.py@@ -10,6 +10,7 @@ class TracingProviderEnum(StrEnum):LANGSMITH = "langsmith"OPIK = "opik"WEAVE = "weave"+ ALIYUN = "aliyun"class BaseTracingConfig(BaseModel):@@ -184,5 +185,15 @@ class WeaveConfig(BaseTracingConfig):return v+class AliyunConfig(BaseTracingConfig):+ """+ Model class for Aliyun tracing config.+ """++ app_name: str = "dify_app"+ license_key: str+ endpoint: str++OPS_FILE_PATH = "ops_trace/"OPS_TRACE_FAILED_KEY = "FAILED_OPS_TRACE"diff --git a/api/core/ops/ops_trace_manager.py b/api/core/ops/ops_trace_manager.pyindex 7aa74a34e4a..5c9b9d27b78 100644--- a/api/core/ops/ops_trace_manager.py+++ b/api/core/ops/ops_trace_manager.py@@ -104,6 +104,17 @@ class OpsTraceProviderConfigMap(dict[str, dict[str, Any]]):"other_keys": ["project", "endpoint"],"trace_instance": ArizePhoenixDataTrace,}+ case TracingProviderEnum.ALIYUN:+ from core.ops.aliyun_trace.aliyun_trace import AliyunDataTrace+ from core.ops.entities.config_entity import AliyunConfig++ return {+ "config_class": AliyunConfig,+ "secret_keys": ["license_key"],+ "other_keys": ["endpoint", "app_name"],+ "trace_instance": AliyunDataTrace,+ }+case _:raise KeyError(f"Unsupported tracing provider: {provider}")diff --git a/api/services/ops_service.py b/api/services/ops_service.pyindex c88accb9a58..dbeb4f19086 100644--- a/api/services/ops_service.py+++ b/api/services/ops_service.py@@ -94,6 +94,16 @@ class OpsService:new_decrypt_tracing_config.update({"project_url": project_url})except Exception:new_decrypt_tracing_config.update({"project_url": "https://wandb.ai/"})++ if tracing_provider == "aliyun" and (+ "project_url" not in decrypt_tracing_config or not decrypt_tracing_config.get("project_url")+ ):+ try:+ project_url = OpsTraceManager.get_trace_config_project_url(decrypt_tracing_config, tracing_provider)+ new_decrypt_tracing_config.update({"project_url": project_url})+ except Exception:+ new_decrypt_tracing_config.update({"project_url": "https://arms.console.aliyun.com/"})+trace_config_data.tracing_config = new_decrypt_tracing_configreturn trace_config_data.to_dict()diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsxindex 92ba068b2b3..644889f0231 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next'import { useBoolean } from 'ahooks'import TracingIcon from './tracing-icon'import ProviderPanel from './provider-panel'-import type { ArizeConfig, LangFuseConfig, LangSmithConfig, OpikConfig, PhoenixConfig, WeaveConfig } from './type'+import type { AliyunConfig, ArizeConfig, LangFuseConfig, LangSmithConfig, OpikConfig, PhoenixConfig, WeaveConfig } from './type'import { TracingProvider } from './type'import ProviderConfigModal from './provider-config-modal'import Indicator from '@/app/components/header/indicator'@@ -29,7 +29,8 @@ export type PopupProps = {langFuseConfig: LangFuseConfig | nullopikConfig: OpikConfig | nullweaveConfig: WeaveConfig | null- onConfigUpdated: (provider: TracingProvider, payload: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig) => void+ aliyunConfig: AliyunConfig | null+ onConfigUpdated: (provider: TracingProvider, payload: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig | AliyunConfig) => voidonConfigRemoved: (provider: TracingProvider) => void}@@ -46,6 +47,7 @@ const ConfigPopup: FC<PopupProps> = ({langFuseConfig,opikConfig,weaveConfig,+ aliyunConfig,onConfigUpdated,onConfigRemoved,}) => {@@ -69,7 +71,7 @@ const ConfigPopup: FC<PopupProps> = ({}}, [onChooseProvider])- const handleConfigUpdated = useCallback((payload: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig) => {+ const handleConfigUpdated = useCallback((payload: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig | AliyunConfig) => {onConfigUpdated(currentProvider!, payload)hideConfigModal()}, [currentProvider, hideConfigModal, onConfigUpdated])@@ -79,8 +81,8 @@ const ConfigPopup: FC<PopupProps> = ({hideConfigModal()}, [currentProvider, hideConfigModal, onConfigRemoved])- const providerAllConfigured = arizeConfig && phoenixConfig && langSmithConfig && langFuseConfig && opikConfig && weaveConfig- const providerAllNotConfigured = !arizeConfig && !phoenixConfig && !langSmithConfig && !langFuseConfig && !opikConfig && !weaveConfig+ const providerAllConfigured = arizeConfig && phoenixConfig && langSmithConfig && langFuseConfig && opikConfig && weaveConfig && aliyunConfig+ const providerAllNotConfigured = !arizeConfig && !phoenixConfig && !langSmithConfig && !langFuseConfig && !opikConfig && !weaveConfig && !aliyunConfigconst switchContent = (<Switch@@ -167,6 +169,19 @@ const ConfigPopup: FC<PopupProps> = ({key="weave-provider-panel"/>)++ const aliyunPanel = (+ <ProviderPanel+ type={TracingProvider.aliyun}+ readOnly={readOnly}+ config={aliyunConfig}+ hasConfigured={!!aliyunConfig}+ onConfig={handleOnConfig(TracingProvider.aliyun)}+ isChosen={chosenProvider === TracingProvider.aliyun}+ onChoose={handleOnChoose(TracingProvider.aliyun)}+ key="alyun-provider-panel"+ />+ )const configuredProviderPanel = () => {const configuredPanels: JSX.Element[] = []@@ -188,6 +203,9 @@ const ConfigPopup: FC<PopupProps> = ({if (phoenixConfig)configuredPanels.push(phoenixPanel)+ if (aliyunConfig)+ configuredPanels.push(aliyunPanel)+return configuredPanels}@@ -212,6 +230,9 @@ const ConfigPopup: FC<PopupProps> = ({if (!weaveConfig)notConfiguredPanels.push(weavePanel)+ if (!aliyunConfig)+ notConfiguredPanels.push(aliyunPanel)+return notConfiguredPanels}@@ -226,6 +247,8 @@ const ConfigPopup: FC<PopupProps> = ({return langFuseConfigif (currentProvider === TracingProvider.opik)return opikConfig+ if (currentProvider === TracingProvider.aliyun)+ return aliyunConfigreturn weaveConfig}@@ -273,6 +296,7 @@ const ConfigPopup: FC<PopupProps> = ({{weavePanel}{arizePanel}{phoenixPanel}+ {aliyunPanel}</div></>)diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config.ts b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config.tsindex 28433991e4c..4c81b63ea21 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config.ts+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config.ts@@ -7,4 +7,5 @@ export const docURL = {[TracingProvider.langfuse]: 'https://docs.langfuse.com',[TracingProvider.opik]: 'https://www.comet.com/docs/opik/tracing/integrations/dify#setup-instructions',[TracingProvider.weave]: 'https://weave-docs.wandb.ai/',+ [TracingProvider.aliyun]: 'https://help.aliyun.com/zh/arms/tracing-analysis/untitled-document-1750672984680',}diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsxindex c8286c9a516..8bf18904be6 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx@@ -7,12 +7,12 @@ import {import { useTranslation } from 'react-i18next'import { usePathname } from 'next/navigation'import { useBoolean } from 'ahooks'-import type { ArizeConfig, LangFuseConfig, LangSmithConfig, OpikConfig, PhoenixConfig, WeaveConfig } from './type'+import type { AliyunConfig, ArizeConfig, LangFuseConfig, LangSmithConfig, OpikConfig, PhoenixConfig, WeaveConfig } from './type'import { TracingProvider } from './type'import TracingIcon from './tracing-icon'import ConfigButton from './config-button'import cn from '@/utils/classnames'-import { ArizeIcon, LangfuseIcon, LangsmithIcon, OpikIcon, PhoenixIcon, WeaveIcon } from '@/app/components/base/icons/src/public/tracing'+import { AliyunIcon, ArizeIcon, LangfuseIcon, LangsmithIcon, OpikIcon, PhoenixIcon, WeaveIcon } from '@/app/components/base/icons/src/public/tracing'import Indicator from '@/app/components/header/indicator'import { fetchTracingConfig as doFetchTracingConfig, fetchTracingStatus, updateTracingStatus } from '@/service/apps'import type { TracingStatus } from '@/models/app'@@ -69,6 +69,7 @@ const Panel: FC = () => {[TracingProvider.langfuse]: LangfuseIcon,[TracingProvider.opik]: OpikIcon,[TracingProvider.weave]: WeaveIcon,+ [TracingProvider.aliyun]: AliyunIcon,}const InUseProviderIcon = inUseTracingProvider ? providerIconMap[inUseTracingProvider] : undefined@@ -78,7 +79,8 @@ const Panel: FC = () => {const [langFuseConfig, setLangFuseConfig] = useState<LangFuseConfig | null>(null)const [opikConfig, setOpikConfig] = useState<OpikConfig | null>(null)const [weaveConfig, setWeaveConfig] = useState<WeaveConfig | null>(null)- const hasConfiguredTracing = !!(langSmithConfig || langFuseConfig || opikConfig || weaveConfig || arizeConfig || phoenixConfig)+ const [aliyunConfig, setAliyunConfig] = useState<AliyunConfig | null>(null)+ const hasConfiguredTracing = !!(langSmithConfig || langFuseConfig || opikConfig || weaveConfig || arizeConfig || phoenixConfig || aliyunConfig)const fetchTracingConfig = async () => {const { tracing_config: arizeConfig, has_not_configured: arizeHasNotConfig } = await doFetchTracingConfig({ appId, provider: TracingProvider.arize })@@ -99,6 +101,9 @@ const Panel: FC = () => {const { tracing_config: weaveConfig, has_not_configured: weaveHasNotConfig } = await doFetchTracingConfig({ appId, provider: TracingProvider.weave })if (!weaveHasNotConfig)setWeaveConfig(weaveConfig as WeaveConfig)+ const { tracing_config: aliyunConfig, has_not_configured: aliyunHasNotConfig } = await doFetchTracingConfig({ appId, provider: TracingProvider.aliyun })+ if (!aliyunHasNotConfig)+ setAliyunConfig(aliyunConfig as AliyunConfig)}const handleTracingConfigUpdated = async (provider: TracingProvider) => {@@ -116,6 +121,8 @@ const Panel: FC = () => {setOpikConfig(tracing_config as OpikConfig)else if (provider === TracingProvider.weave)setWeaveConfig(tracing_config as WeaveConfig)+ else if (provider === TracingProvider.aliyun)+ setAliyunConfig(tracing_config as AliyunConfig)}const handleTracingConfigRemoved = (provider: TracingProvider) => {@@ -131,6 +138,8 @@ const Panel: FC = () => {setOpikConfig(null)else if (provider === TracingProvider.weave)setWeaveConfig(null)+ else if (provider === TracingProvider.aliyun)+ setAliyunConfig(null)if (provider === inUseTracingProvider) {handleTracingStatusChange({enabled: false,@@ -191,6 +200,7 @@ const Panel: FC = () => {langFuseConfig={langFuseConfig}opikConfig={opikConfig}weaveConfig={weaveConfig}+ aliyunConfig={aliyunConfig}onConfigUpdated={handleTracingConfigUpdated}onConfigRemoved={handleTracingConfigRemoved}controlShowPopup={controlShowPopup}@@ -228,6 +238,7 @@ const Panel: FC = () => {langFuseConfig={langFuseConfig}opikConfig={opikConfig}weaveConfig={weaveConfig}+ aliyunConfig={aliyunConfig}onConfigUpdated={handleTracingConfigUpdated}onConfigRemoved={handleTracingConfigRemoved}controlShowPopup={controlShowPopup}diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsxindex 67cac95964b..318f1f61d6e 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-config-modal.tsx@@ -4,7 +4,7 @@ import React, { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'import { useBoolean } from 'ahooks'import Field from './field'-import type { ArizeConfig, LangFuseConfig, LangSmithConfig, OpikConfig, PhoenixConfig, WeaveConfig } from './type'+import type { AliyunConfig, ArizeConfig, LangFuseConfig, LangSmithConfig, OpikConfig, PhoenixConfig, WeaveConfig } from './type'import { TracingProvider } from './type'import { docURL } from './config'import {@@ -22,10 +22,10 @@ import Divider from '@/app/components/base/divider'type Props = {appId: stringtype: TracingProvider- payload?: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig | null+ payload?: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig | AliyunConfig | nullonRemoved: () => voidonCancel: () => void- onSaved: (payload: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig) => void+ onSaved: (payload: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig | AliyunConfig) => voidonChosen: (provider: TracingProvider) => void}@@ -71,6 +71,12 @@ const weaveConfigTemplate = {host: '',}+const aliyunConfigTemplate = {+ app_name: '',+ license_key: '',+ endpoint: '',+}+const ProviderConfigModal: FC<Props> = ({appId,type,@@ -84,7 +90,7 @@ const ProviderConfigModal: FC<Props> = ({const isEdit = !!payloadconst isAdd = !isEditconst [isSaving, setIsSaving] = useState(false)- const [config, setConfig] = useState<ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig>((() => {+ const [config, setConfig] = useState<ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig | AliyunConfig>((() => {if (isEdit)return payload@@ -103,6 +109,9 @@ const ProviderConfigModal: FC<Props> = ({else if (type === TracingProvider.opik)return opikConfigTemplate+ else if (type === TracingProvider.aliyun)+ return aliyunConfigTemplate+return weaveConfigTemplate})())const [isShowRemoveConfirm, {@@ -183,6 +192,16 @@ const ProviderConfigModal: FC<Props> = ({errorMessage = t('common.errorMsg.fieldRequired', { field: t(`${I18N_PREFIX}.project`) })}+ if (type === TracingProvider.aliyun) {+ const postData = config as AliyunConfig+ if (!errorMessage && !postData.app_name)+ errorMessage = t('common.errorMsg.fieldRequired', { field: 'App Name' })+ if (!errorMessage && !postData.license_key)+ errorMessage = t('common.errorMsg.fieldRequired', { field: 'License Key' })+ if (!errorMessage && !postData.endpoint)+ errorMessage = t('common.errorMsg.fieldRequired', { field: 'Endpoint' })+ }+return errorMessage}, [config, t, type])const handleSave = useCallback(async () => {@@ -294,6 +313,31 @@ const ProviderConfigModal: FC<Props> = ({/></>)}+ {type === TracingProvider.aliyun && (+ <>+ <Field+ label='License Key'+ labelClassName='!text-sm'+ isRequired+ value={(config as AliyunConfig).license_key}+ onChange={handleConfigChange('license_key')}+ placeholder={t(`${I18N_PREFIX}.placeholder`, { key: 'License Key' })!}+ />+ <Field+ label='Endpoint'+ labelClassName='!text-sm'+ value={(config as AliyunConfig).endpoint}+ onChange={handleConfigChange('endpoint')}+ placeholder={'https://tracing.arms.aliyuncs.com'}+ />+ <Field+ label='App Name'+ labelClassName='!text-sm'+ value={(config as AliyunConfig).app_name}+ onChange={handleConfigChange('app_name')}+ />+ </>+ )}{type === TracingProvider.weave && (<><Fielddiff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsxindex 4999edf7789..4a45e0cab7e 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/provider-panel.tsx@@ -7,7 +7,7 @@ import {import { useTranslation } from 'react-i18next'import { TracingProvider } from './type'import cn from '@/utils/classnames'-import { ArizeIconBig, LangfuseIconBig, LangsmithIconBig, OpikIconBig, PhoenixIconBig, WeaveIconBig } from '@/app/components/base/icons/src/public/tracing'+import { AliyunIconBig, ArizeIconBig, LangfuseIconBig, LangsmithIconBig, OpikIconBig, PhoenixIconBig, WeaveIconBig } from '@/app/components/base/icons/src/public/tracing'import { Eye as View } from '@/app/components/base/icons/src/vender/solid/general'const I18N_PREFIX = 'app.tracing'@@ -30,6 +30,7 @@ const getIcon = (type: TracingProvider) => {[TracingProvider.langfuse]: LangfuseIconBig,[TracingProvider.opik]: OpikIconBig,[TracingProvider.weave]: WeaveIconBig,+ [TracingProvider.aliyun]: AliyunIconBig,})[type]}diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type.ts b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type.tsindex 7e934b74c6b..78bca41ad2f 100644--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type.ts+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type.ts@@ -5,6 +5,7 @@ export enum TracingProvider {langfuse = 'langfuse',opik = 'opik',weave = 'weave',+ aliyun = 'aliyun',}export type ArizeConfig = {@@ -46,3 +47,9 @@ export type WeaveConfig = {endpoint: stringhost: string}++export type AliyunConfig = {+ app_name: string+ license_key: string+ endpoint: string+}diff --git a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsxindex fb3a9087caa..acaae3f7200 100644--- a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx+++ b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout-main.tsx@@ -77,7 +77,7 @@ const ExtraInfo = ({ isMobile, relatedApps, expand }: IExtraInfoProps) => {</Tooltip>)}- {isMobile && <div className={classNames('uppercase text-xs text-text-tertiary font-medium pb-2 pt-4', 'flex items-center justify-center !px-0 gap-1')}>+ {isMobile && <div className={classNames('pb-2 pt-4 text-xs font-medium uppercase text-text-tertiary', 'flex items-center justify-center gap-1 !px-0')}>{relatedAppsTotal || '--'}<PaperClipIcon className='h-4 w-4 text-text-secondary' /></div>}diff --git a/web/app/components/base/icons/assets/public/tracing/aliyun-icon-big.svg b/web/app/components/base/icons/assets/public/tracing/aliyun-icon-big.svgnew file mode 100644index 00000000000..210a1cd00b6--- /dev/null+++ b/web/app/components/base/icons/assets/public/tracing/aliyun-icon-big.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="159" height="24" viewBox="0 0 159 24"><defs><clipPath id="master_svg0_42_18775"><rect x="0" y="0" width="28.5" height="24" rx="0"/></clipPath></defs><g><g clip-path="url(#master_svg0_42_18775)"><g><path d="M6.10294,22C5.68819,22,5.18195,21.8532,4.58421,21.5595C4.46861,21.5027,4.39038,21.4658,4.34951,21.4488C3.49789,21.0943,2.74367,20.5941,2.08684,19.9484C0.695613,18.5806,0,16.9311,0,15C0,13.0689,0.695612,11.4194,2.08684,10.0516C3.24259,8.91537,4.59607,8.2511,6.14728,8.05878C6.34758,5.97414,7.22633,4.16634,8.78354,2.63539C10.5706,0.878463,12.7286,0,15.2573,0C17.2884,0,19.1146,0.595472,20.7358,1.78642C22.327,2.95528,23.4151,4.46783,24,6.32406L22.0568,6.91594C21.6024,5.47377,20.7561,4.29798,19.5181,3.38858C18.2579,2.46286,16.8377,2,15.2573,2C13.2903,2,11.6119,2.6832,10.222,4.04961C8.83217,5.41601,8.13725,7.06614,8.13725,9L8.13725,10L7.12009,10C5.71758,10,4.51932,10.4886,3.52532,11.4659C2.53132,12.4431,2.03431,13.6211,2.03431,15C2.03431,16.3789,2.53132,17.5569,3.52532,18.5341C3.99531,18.9962,4.53447,19.3538,5.14278,19.6071C5.2229,19.6405,5.33983,19.695,5.49356,19.7705C5.80505,19.9235,6.00818,20,6.10294,20L6.10294,22Z" fill-rule="evenodd" fill="#000000" fill-opacity="1" style="mix-blend-mode:passthrough"/></g><g><path d="M20.18796103515625,11.66909C19.46346103515625,11.5762,18.72726103515625,11.52975,17.991011035156248,11.52975C16.728921035156247,11.52975,15.45515103515625,11.66909,14.23981103515625,11.91292C13.02447103515625,12.156749999999999,11.85588103515625,12.539909999999999,10.73402103515625,12.98113C9.98612103515625,13.306239999999999,9.23822103515625,13.69327,8.49031803515625,14.14223C7.99950790415625,14.43251,7.85927603515625,15.10595,8.15142503515625,15.59361L11.11966103515625,19.9478C11.45855103515625,20.4354,12.13634103515625,20.5747,12.627151035156249,20.2845C12.821921035156251,20.152900000000002,13.14523103515625,19.990299999999998,13.59708103515625,19.796799999999998C14.27487103515625,19.506500000000003,14.964341035156249,19.3091,15.68887103515625,19.169800000000002C16.413401035156248,19.018900000000002,17.14962103515625,18.926000000000002,17.93258103515625,18.926000000000002L20.071061035156248,11.715530000000001L20.18796103515625,11.66909ZM22.91076103515625,12.20319L22.525161035156252,8L20.18796103515625,11.6807C20.72556103515625,11.72714,21.21636103515625,11.82003,21.74216103515625,11.92453C21.74216103515625,11.91679,22.13166103515625,12.00968,22.91076103515625,12.20319ZM18.09616103515625,18.9724L17.06782103515625,22.4557L18.773961035156248,24L21.11116103515625,23.465899999999998L21.788961035156248,19.5414C21.298161035156248,19.402,20.81896103515625,19.2511,20.32816103515625,19.1582C19.60366103515625,19.076900000000002,18.86746103515625,18.9724,18.09616103515625,18.9724ZM27.49166103515625,14.14223C26.74376103515625,13.69327,25.99586103515625,13.306239999999999,25.24796103515625,12.98113C24.52346103515625,12.69086,23.74046103515625,12.40058,22.95756103515625,12.20319L22.95756103515625,12.40058L21.69546103515625,19.5646C21.89416103515625,19.6575,22.139561035156248,19.7039,22.32646103515625,19.8084C22.77836103515625,20.0019,23.101661035156248,20.1645,23.29646103515625,20.2961C23.78726103515625,20.586399999999998,24.51176103515625,20.4354,24.80396103515625,19.959400000000002L27.77216103515625,15.605229999999999C28.16946103515625,15.05951,28.02926103515625,14.43251,27.49166103515625,14.14223Z" fill="#000000" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g><g><path d="M53.295,19.1189814453125L51.951,21.2189814453125Q46.05,17.6279814453125,43.971000000000004,13.0079814453125Q42.921,15.4019814453125,40.884,17.3969814453125Q38.847,19.3919814453125,35.97,21.2399814453125L34.5,19.1609814453125Q41.997,14.9609814453125,42.585,9.2489814453125L35.214,9.2489814453125L35.214,7.1069814453125L42.647999999999996,7.1069814453125L42.647999999999996,2.2979812453125L44.958,2.3819804453125L44.958,7.1069814453125L52.455,7.1069814453125L52.455,9.2489814453125L44.916,9.2489814453125L44.894999999999996,9.5219814453125Q45.650999999999996,12.6509814453125,47.646,14.8979814453125Q49.641,17.1449814453125,53.295,19.1189814453125ZM66.021,7.0649814453125L64.215,7.0649814453125L64.215,5.9099814453125L61.653,5.9099814453125L61.653,4.1039814453125L64.215,4.1039814453125L64.215,2.2559814453125L66.021,2.3399810453125L66.021,4.1039814453125L68.77199999999999,4.1039814453125L68.77199999999999,2.2559814453125L70.557,2.3399810453125L70.557,4.1039814453125L73.413,4.1039814453125L73.413,5.9099814453125L70.557,5.9099814453125L70.557,7.0649814453125L68.77199999999999,7.0649814453125L68.77199999999999,5.9099814453125L66.021,5.9099814453125L66.021,7.0649814453125ZM68.814,16.8929814453125Q69.549,17.9009814453125,70.84049999999999,18.6044814453125Q72.132,19.3079814453125,74.19,19.7279814453125L73.62299999999999,21.6179814453125Q69.36,20.5679814453125,67.449,18.1109814453125Q66.693,19.2449814453125,65.202,20.1059814453125Q63.711,20.9669814453125,61.296,21.6389814453125L60.54,19.8119814453125Q62.766,19.3289814453125,64.0575,18.6044814453125Q65.349,17.879981445312502,65.895,16.8929814453125L61.317,16.8929814453125L61.317,15.2339814453125L66.378,15.2339814453125Q66.399,15.1499814453125,66.399,15.0029814453125Q66.42,14.7299814453125,66.42,13.9949814453125L62.262,13.9949814453125L62.262,12.4199814453125L60.96,13.3439814453125Q60.519,12.3779814453125,59.784,11.2439814453125L59.784,21.2189814453125L57.957,21.2189814453125L57.957,12.0839814453125Q56.949,14.6669814453125,55.962,16.3049814453125L54.45,14.7929814453125Q55.332,13.3649814453125,56.193,11.5904814453125Q57.054,9.815981445312499,57.620999999999995,8.1779814453125L55.521,8.1779814453125L55.521,6.2669814453125L57.957,6.2669814453125L57.957,2.3189811453125L59.784,2.4029824453125L59.784,6.2669814453125L61.757999999999996,6.2669814453125L61.757999999999996,8.1779814453125L59.784,8.1779814453125L59.784,10.3829814453125L60.708,9.6689814453125Q61.59,10.7609814453125,62.262,12.0419814453125L62.262,7.5479814453125L72.489,7.5479814453125L72.489,13.9949814453125L68.37299999999999,13.9949814453125Q68.331,14.7089814453125,68.331,15.0029814453125L68.331,15.2339814453125L73.497,15.2339814453125L73.497,16.8929814453125L68.814,16.8929814453125ZM70.809,10.1099814453125L70.809,9.1019814453125L64.005,9.1019814453125L64.005,10.1099814453125L70.809,10.1099814453125ZM70.809,11.4749814453125L64.005,11.4749814453125L64.005,12.4409814453125L70.809,12.4409814453125L70.809,11.4749814453125ZM88.89,13.7639814453125L88.30199999999999,11.8529814453125L89.856,11.7269814453125Q90.63300000000001,11.6639814453125,90.88499999999999,11.4644814453125Q91.137,11.2649814453125,91.137,10.5929814453125L91.137,2.6969814453125L93.09,2.7809824453125L93.09,11.1179814453125Q93.09,12.0839814453125,92.85900000000001,12.5879814453125Q92.628,13.0919814453125,92.0715,13.3229814453125Q91.515,13.5539814453125,90.444,13.6379814453125L88.89,13.7639814453125ZM76.35300000000001,13.5959814453125Q77.445,12.4619814453125,77.928,11.6639814453125Q78.411,10.8659814453125,78.55799999999999,9.8579814453125L76.311,9.8579814453125L76.311,8.0309814453125L78.684,8.0309814453125L78.684,7.4639814453125L78.684,5.2589814453125L76.836,5.2589814453125L76.836,3.3689814453125L86.706,3.3689814453125L86.706,5.2589814453125L84.9,5.2589814453125L84.9,8.0309814453125L87.126,8.0309814453125L87.126,9.8579814453125L84.9,9.8579814453125L84.9,13.4909814453125L82.926,13.4909814453125L82.926,9.8579814453125L80.532,9.8579814453125Q80.364,11.3699814453125,79.797,12.4619814453125Q79.22999999999999,13.5539814453125,77.949,14.8349814453125L76.35300000000001,13.5959814453125ZM87.672,3.7679814453125L89.583,3.8519814453125L89.583,11.0969814453125L87.672,11.0969814453125L87.672,3.7679814453125ZM80.637,5.2589814453125L80.637,7.4849814453125L80.637,8.0309814453125L82.926,8.0309814453125L82.926,5.2589814453125L80.637,5.2589814453125ZM86.223,16.7039814453125L86.223,18.9719814453125L94.32900000000001,18.9719814453125L94.32900000000001,20.8409814453125L76.017,20.8409814453125L76.017,18.9719814453125L84.144,18.9719814453125L84.144,16.7039814453125L78.15899999999999,16.7039814453125L78.15899999999999,14.8769814453125L84.144,14.8769814453125L84.144,13.6799814453125L86.223,13.7639814453125L86.223,14.8769814453125L92.229,14.8769814453125L92.229,16.7039814453125L86.223,16.7039814453125ZM115.119,3.4739814453125L115.119,5.5319814453125L112.494,5.5319814453125L112.494,18.0899814453125Q112.494,19.3289814453125,112.2315,19.9169814453125Q111.969,20.5049814453125,111.3075,20.7569814453125Q110.646,21.0089814453125,109.239,21.1349814453125L107.874,21.2609814453125L107.223,19.1819814453125L108.819,19.0559814453125Q109.554,18.9929814453125,109.8795,18.8669814453125Q110.205,18.7409814453125,110.31,18.4469814453125Q110.415,18.1529814453125,110.415,17.501981445312502L110.415,5.5319814453125L96.59700000000001,5.5319814453125L96.59700000000001,3.4739814453125L115.119,3.4739814453125ZM98.802,7.9679814453125L107.433,7.9679814453125L107.433,17.2499814453125L98.802,17.2499814453125L98.802,7.9679814453125ZM100.797,15.2129814453125L105.459,15.2129814453125L105.459,10.0259814453125L100.797,10.0259814453125L100.797,15.2129814453125ZM132.192,5.1539814453125L126.711,5.1539814453125L126.711,15.1289814453125L124.737,15.1289814453125L124.737,3.1799814453125L134.166,3.1799814453125L134.166,15.0869814453125L132.192,15.0869814453125L132.192,5.1539814453125ZM123.036,18.6569814453125Q122.385,17.2499814453125,121.482,15.4649814453125Q120.327,17.9009814453125,118.311,20.8199814453125L116.715,19.4549814453125Q119.088,16.2839814453125,120.369,13.2179814453125Q118.584,9.7739814453125,117.534,8.0099814453125L119.067,7.0229814453125Q119.76,8.1149814453125,121.251,10.7609814453125Q121.839,8.7449814453125,122.217,6.0989814453125L117.576,6.0989814453125L117.576,4.0829814453125L124.254,4.0829814453125L124.254,6.0989814453125Q123.75,9.8579814453125,122.511,13.0919814453125Q123.771,15.4439814453125,124.695,17.3549814453125L123.036,18.6569814453125ZM135.78300000000002,16.5779814453125Q135.72,17.8379814453125,135.594,18.6359814453125Q135.46800000000002,19.6019814453125,135.237,20.0849814453125Q135.006,20.5679814453125,134.523,20.7779814453125Q134.04000000000002,20.9879814453125,133.095,20.9879814453125L131.247,20.9879814453125Q130.05,20.9879814453125,129.5775,20.4839814453125Q129.10500000000002,19.9799814453125,129.10500000000002,18.6359814453125L129.10500000000002,16.3469814453125Q128.349,17.8379814453125,127.068,19.1399814453125Q125.787,20.4419814453125,123.834,21.7439814453125L122.532,20.0219814453125Q124.863,18.5939814453125,126.0705,17.2394814453125Q127.278,15.8849814453125,127.74,14.2994814453125Q128.202,12.7139814453125,128.286,10.2569814453125L128.349,6.1409814453125L130.449,6.224981445312499L130.386,10.5089814453125Q130.32299999999998,12.2309814453125,130.05,13.5959814453125L131.058,13.6379814453125L131.058,17.9219814453125Q131.058,18.5939814453125,131.226,18.7829814453125Q131.394,18.9719814453125,131.982,18.9719814453125L132.696,18.9719814453125Q133.263,18.9719814453125,133.4625,18.7934814453125Q133.662,18.6149814453125,133.74599999999998,17.942981445312498Q133.872,16.7249814453125,133.872,15.8639814453125L135.78300000000002,16.5779814453125ZM139.374,2.5079814453125Q140.088,2.9909814453125,141.054,3.8204814453125Q142.01999999999998,4.6499814453125,142.587,5.2379814453125L141.39,6.8759814453125Q140.928,6.3089814453125,139.941,5.3954814453125Q138.954,4.4819814453125,138.28199999999998,3.9569814453125L139.374,2.5079814453125ZM152.184,19.0769814453125Q152.751,19.0139814453125,153.014,18.9299814453125Q153.276,18.8459814453125,153.381,18.6359814453125Q153.486,18.4259814453125,153.486,17.9639814453125L153.486,2.6549814453125L155.124,2.7389824453125L155.124,18.5939814453125Q155.124,19.5389814453125,154.95600000000002,20.0009814453125Q154.788,20.4629814453125,154.315,20.6729814453125Q153.84300000000002,20.8829814453125,152.83499999999998,20.9669814453125L151.659,21.0509814453125L151.09199999999998,19.1609814453125L152.184,19.0769814453125ZM142.587,15.8429814453125L142.587,3.4529814453125L149.286,3.4529814453125L149.286,15.7799814453125L147.543,15.7799814453125L147.543,5.2799814453125L144.288,5.2799814453125L144.288,15.8429814453125L142.587,15.8429814453125ZM150.546,16.4099814453125L150.546,4.4819814453125L152.184,4.5659814453125005L152.184,16.4099814453125L150.546,16.4099814453125ZM141.012,19.7279814453125Q142.81799999999998,18.4049814453125,143.679,17.3654814453125Q144.54000000000002,16.3259814453125,144.834,15.0974814453125Q145.128,13.8689814453125,145.128,11.7689814453125L145.128,6.224981445312499L146.76600000000002,6.3089814453125L146.76600000000002,11.7689814453125Q146.76600000000002,14.2889814453125,146.33499999999998,15.8954814453125Q145.905,17.501981445312502,144.95,18.6779814453125Q143.994,19.8539814453125,142.209,21.1979814453125L141.012,19.7279814453125ZM138.639,7.2329814453125Q139.353,7.7369814453125,140.329,8.5874814453125Q141.30599999999998,9.4379814453125,141.957,10.1099814453125L140.76,11.7899814453125Q140.151,11.0969814453125,139.174,10.2044814453125Q138.19799999999998,9.311981445312501,137.421,8.7239814453125L138.639,7.2329814453125ZM137.82,20.2949814453125Q138.156,19.3709814453125,138.933,16.5989814453125Q139.70999999999998,13.8269814453125,139.878,12.9029814453125L140.781,13.1969814453125L141.642,13.4909814453125Q141.369,14.7299814453125,140.66500000000002,17.2814814453125Q139.962,19.8329814453125,139.60500000000002,20.9249814453125L137.82,20.2949814453125ZM147.144,15.9689814453125Q148.86599999999999,17.5439814453125,150.10500000000002,19.1189814453125L148.86599999999999,20.4839814453125Q148.06799999999998,19.4129814453125,147.449,18.6884814453125Q146.829,17.9639814453125,146.01,17.207981445312498L147.144,15.9689814453125Z" fill="#000000" fill-opacity="1"/></g></g></svg>diff --git a/web/app/components/base/icons/assets/public/tracing/aliyun-icon.svg b/web/app/components/base/icons/assets/public/tracing/aliyun-icon.svgnew file mode 100644index 00000000000..6f7645301ce--- /dev/null+++ b/web/app/components/base/icons/assets/public/tracing/aliyun-icon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="106" height="16" viewBox="0 0 106 16"><defs><clipPath id="master_svg0_36_00924"><rect x="0" y="0" width="19" height="16" rx="0"/></clipPath></defs><g><g clip-path="url(#master_svg0_36_00924)"><g><g><path d="M4.06862,14.6667C3.79213,14.6667,3.45463,14.5688,3.05614,14.373C2.97908,14.3351,2.92692,14.3105,2.89968,14.2992C2.33193,14.0628,1.82911,13.7294,1.39123,13.2989C0.463742,12.3871,0,11.2874,0,10C0,8.71258,0.463742,7.61293,1.39123,6.70107C2.16172,5.94358,3.06404,5.50073,4.09819,5.37252C4.23172,3.98276,4.81755,2.77756,5.85569,1.75693C7.04708,0.585642,8.4857,0,10.1716,0C11.5256,0,12.743,0.396982,13.8239,1.19095C14.8847,1.97019,15.61,2.97855,16,4.21604L14.7045,4.61063C14.4016,3.64918,13.8374,2.86532,13.0121,2.25905C12.1719,1.64191,11.2251,1.33333,10.1716,1.33333C8.8602,1.33333,7.74124,1.7888,6.81467,2.69974C5.88811,3.61067,5.42483,4.71076,5.42483,6L5.42483,6.66667L4.74673,6.66667C3.81172,6.66667,3.01288,6.99242,2.35021,7.64393C1.68754,8.2954,1.35621,9.08076,1.35621,10C1.35621,10.9192,1.68754,11.7046,2.35021,12.3561C2.66354,12.6641,3.02298,12.9026,3.42852,13.0714C3.48193,13.0937,3.55988,13.13,3.66237,13.1803C3.87004,13.2823,4.00545,13.3333,4.06862,13.3333L4.06862,14.6667Z" fill-rule="evenodd" fill="#000000" fill-opacity="1" style="mix-blend-mode:passthrough"/></g><g><path d="M13.458613505859375,7.779393492279053C12.975613505859375,7.717463492279053,12.484813505859375,7.686503492279053,11.993983505859376,7.686503492279053C11.152583505859376,7.686503492279053,10.303403505859375,7.779393492279053,9.493183505859374,7.941943492279053C8.682953505859375,8.104503492279052,7.903893505859375,8.359943492279053,7.155983505859375,8.654083492279053C6.657383505859375,8.870823492279053,6.158783505859375,9.128843492279053,5.660181505859375,9.428153492279053C5.332974751859375,9.621673492279053,5.239486705859375,10.070633492279054,5.434253505859375,10.395743492279053L7.413073505859375,13.298533492279052C7.639003505859375,13.623603492279052,8.090863505859375,13.716463492279052,8.418073505859375,13.523003492279052C8.547913505859375,13.435263492279052,8.763453505859374,13.326893492279053,9.064693505859374,13.197863492279053C9.516553505859374,13.004333492279052,9.976203505859374,12.872733492279053,10.459223505859375,12.779863492279052C10.942243505859375,12.679263492279052,11.433053505859375,12.617333492279052,11.955023505859375,12.617333492279052L13.380683505859375,7.810353492279052L13.458613505859375,7.779393492279053ZM15.273813505859374,8.135463492279053L15.016753505859375,5.333333492279053L13.458613505859375,7.787133492279053C13.817013505859375,7.818093492279052,14.144213505859375,7.880023492279053,14.494743505859375,7.949683492279053C14.494743505859375,7.944523492279053,14.754433505859375,8.006453492279054,15.273813505859374,8.135463492279053ZM12.064083505859376,12.648273492279053L11.378523505859375,14.970463492279054L12.515943505859376,16.00003349227905L14.074083505859376,15.643933492279054L14.525943505859376,13.027603492279052C14.198743505859374,12.934663492279054,13.879283505859375,12.834063492279054,13.552083505859375,12.772133492279053C13.069083505859375,12.717933492279052,12.578283505859375,12.648273492279053,12.064083505859376,12.648273492279053ZM18.327743505859374,9.428153492279053C17.829143505859374,9.128843492279053,17.330543505859374,8.870823492279053,16.831943505859375,8.654083492279053C16.348943505859374,8.460573492279053,15.826943505859376,8.267053492279054,15.305013505859375,8.135463492279053L15.305013505859375,8.267053492279054L14.463613505859374,13.043063492279053C14.596083505859376,13.105003492279053,14.759683505859375,13.135933492279053,14.884283505859376,13.205603492279053C15.185523505859376,13.334623492279052,15.401043505859375,13.443003492279052,15.530943505859375,13.530733492279053C15.858143505859376,13.724263492279054,16.341143505859375,13.623603492279052,16.535943505859375,13.306263492279053L18.514743505859375,10.403483492279053C18.779643505859376,10.039673492279054,18.686143505859377,9.621673492279053,18.327743505859374,9.428153492279053Z" fill="#000000" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></g><g><g><path d="M36.174,12.958L35.278,14.358Q31.344,11.964,29.958,8.884Q29.258,10.48,27.9,11.81Q26.542,13.14,24.624,14.372L23.644,12.986Q28.642,10.186,29.034,6.378L24.12,6.378L24.12,4.95L29.076,4.95L29.076,1.743999L30.616,1.7999990000000001L30.616,4.95L35.614000000000004,4.95L35.614000000000004,6.378L30.588,6.378L30.573999999999998,6.56Q31.078,8.646,32.408,10.144Q33.738,11.642,36.174,12.958ZM44.658,4.922000000000001L43.454,4.922000000000001L43.454,4.152L41.745999999999995,4.152L41.745999999999995,2.948L43.454,2.948L43.454,1.716L44.658,1.771999L44.658,2.948L46.492000000000004,2.948L46.492000000000004,1.716L47.682,1.771999L47.682,2.948L49.586,2.948L49.586,4.152L47.682,4.152L47.682,4.922000000000001L46.492000000000004,4.922000000000001L46.492000000000004,4.152L44.658,4.152L44.658,4.922000000000001ZM46.519999999999996,11.474Q47.010000000000005,12.146,47.870999999999995,12.615Q48.732,13.084,50.104,13.364L49.726,14.624Q46.884,13.924,45.61,12.286Q45.106,13.042,44.111999999999995,13.616Q43.117999999999995,14.19,41.507999999999996,14.638L41.004000000000005,13.42Q42.488,13.098,43.349000000000004,12.615Q44.21,12.132,44.574,11.474L41.522,11.474L41.522,10.368L44.896,10.368Q44.91,10.312,44.91,10.214Q44.924,10.032,44.924,9.542L42.152,9.542L42.152,8.492L41.284,9.108Q40.989999999999995,8.464,40.5,7.708L40.5,14.358L39.282,14.358L39.282,8.268Q38.61,9.99,37.952,11.082L36.944,10.074Q37.532,9.122,38.106,7.939Q38.68,6.756,39.058,5.664L37.658,5.664L37.658,4.390000000000001L39.282,4.390000000000001L39.282,1.7579989999999999L40.5,1.814L40.5,4.390000000000001L41.816,4.390000000000001L41.816,5.664L40.5,5.664L40.5,7.134L41.116,6.658Q41.704,7.386,42.152,8.24L42.152,5.244L48.97,5.244L48.97,9.542L46.226,9.542Q46.198,10.018,46.198,10.214L46.198,10.368L49.641999999999996,10.368L49.641999999999996,11.474L46.519999999999996,11.474ZM47.85,6.952L47.85,6.28L43.314,6.28L43.314,6.952L47.85,6.952ZM47.85,7.862L43.314,7.862L43.314,8.506L47.85,8.506L47.85,7.862ZM59.904,9.388L59.512,8.114L60.548,8.030000000000001Q61.066,7.988,61.234,7.855Q61.402,7.722,61.402,7.274L61.402,2.01L62.704,2.066L62.704,7.624Q62.704,8.268,62.55,8.604Q62.396,8.940000000000001,62.025,9.094Q61.654,9.248,60.94,9.304L59.904,9.388ZM51.546,9.276Q52.274,8.52,52.596000000000004,7.988Q52.918,7.456,53.016,6.784L51.518,6.784L51.518,5.566L53.1,5.566L53.1,5.188L53.1,3.718L51.867999999999995,3.718L51.867999999999995,2.458L58.448,2.458L58.448,3.718L57.244,3.718L57.244,5.566L58.728,5.566L58.728,6.784L57.244,6.784L57.244,9.206L55.928,9.206L55.928,6.784L54.332,6.784Q54.22,7.792,53.842,8.52Q53.464,9.248,52.61,10.102L51.546,9.276ZM59.092,2.724L60.366,2.7800000000000002L60.366,7.61L59.092,7.61L59.092,2.724ZM54.402,3.718L54.402,5.202L54.402,5.566L55.928,5.566L55.928,3.718L54.402,3.718ZM58.126,11.348L58.126,12.86L63.53,12.86L63.53,14.106L51.322,14.106L51.322,12.86L56.74,12.86L56.74,11.348L52.75,11.348L52.75,10.13L56.74,10.13L56.74,9.332L58.126,9.388L58.126,10.13L62.13,10.13L62.13,11.348L58.126,11.348ZM77.39,2.528L77.39,3.9L75.64,3.9L75.64,12.272Q75.64,13.098,75.465,13.49Q75.28999999999999,13.882,74.84899999999999,14.05Q74.408,14.218,73.47,14.302L72.56,14.386L72.126,13L73.19,12.916Q73.68,12.874,73.89699999999999,12.79Q74.114,12.706,74.184,12.51Q74.25399999999999,12.314,74.25399999999999,11.88L74.25399999999999,3.9L65.042,3.9L65.042,2.528L77.39,2.528ZM66.512,5.524L72.26599999999999,5.524L72.26599999999999,11.712L66.512,11.712L66.512,5.524ZM67.842,10.354L70.95,10.354L70.95,6.896L67.842,6.896L67.842,10.354ZM88.772,3.648L85.118,3.648L85.118,10.298L83.80199999999999,10.298L83.80199999999999,2.332L90.088,2.332L90.088,10.27L88.772,10.27L88.772,3.648ZM82.668,12.65Q82.23400000000001,11.712,81.632,10.522Q80.862,12.146,79.518,14.092L78.45400000000001,13.182Q80.036,11.068,80.89,9.024Q79.7,6.728,79,5.552L80.02199999999999,4.894Q80.48400000000001,5.622,81.47800000000001,7.386Q81.87,6.042,82.122,4.2780000000000005L79.02799999999999,4.2780000000000005L79.02799999999999,2.934L83.47999999999999,2.934L83.47999999999999,4.2780000000000005Q83.144,6.784,82.318,8.940000000000001Q83.158,10.508,83.774,11.782L82.668,12.65ZM91.166,11.264Q91.124,12.104,91.04,12.636Q90.956,13.28,90.802,13.602Q90.648,13.924,90.326,14.064Q90.004,14.204,89.374,14.204L88.142,14.204Q87.344,14.204,87.029,13.868Q86.714,13.532,86.714,12.636L86.714,11.11Q86.21000000000001,12.104,85.356,12.972Q84.50200000000001,13.84,83.2,14.708L82.332,13.56Q83.886,12.608,84.691,11.705Q85.49600000000001,10.802,85.804,9.745Q86.112,8.687999999999999,86.168,7.05L86.21000000000001,4.306L87.61,4.362L87.568,7.218Q87.526,8.366,87.344,9.276L88.016,9.304L88.016,12.16Q88.016,12.608,88.128,12.734Q88.24,12.86,88.632,12.86L89.108,12.86Q89.486,12.86,89.619,12.741Q89.752,12.622,89.808,12.174Q89.892,11.362,89.892,10.788L91.166,11.264ZM93.56,1.884Q94.036,2.206,94.68,2.759Q95.324,3.312,95.702,3.704L94.904,4.795999999999999Q94.596,4.418,93.938,3.809Q93.28,3.2,92.832,2.85L93.56,1.884ZM102.1,12.93Q102.478,12.888,102.653,12.832Q102.828,12.776,102.898,12.636Q102.968,12.496,102.968,12.188L102.968,1.981999L104.06,2.0380000000000003L104.06,12.608Q104.06,13.238,103.948,13.546Q103.836,13.854,103.521,13.994Q103.206,14.134,102.534,14.19L101.75,14.246L101.372,12.986L102.1,12.93ZM95.702,10.774L95.702,2.5140000000000002L100.168,2.5140000000000002L100.168,10.732L99.006,10.732L99.006,3.732L96.836,3.732L96.836,10.774L95.702,10.774ZM101.008,11.152L101.008,3.2L102.1,3.256L102.1,11.152L101.008,11.152ZM94.652,13.364Q95.856,12.482,96.43,11.789Q97.004,11.096,97.2,10.277Q97.396,9.458,97.396,8.058L97.396,4.362L98.488,4.418L98.488,8.058Q98.488,9.738,98.201,10.809Q97.914,11.88,97.277,12.664Q96.64,13.448,95.45,14.344L94.652,13.364ZM93.07,5.034Q93.546,5.37,94.197,5.937Q94.848,6.504,95.282,6.952L94.484,8.072Q94.078,7.61,93.427,7.015Q92.776,6.42,92.258,6.028L93.07,5.034ZM92.524,13.742Q92.748,13.126,93.266,11.278Q93.784,9.43,93.896,8.814L94.498,9.01L95.072,9.206Q94.89,10.032,94.421,11.733Q93.952,13.434,93.714,14.162L92.524,13.742ZM98.74,10.858Q99.888,11.908,100.714,12.958L99.888,13.868Q99.356,13.154,98.943,12.671Q98.53,12.188,97.984,11.684L98.74,10.858Z" fill="#000000" fill-opacity="1"/></g></g></g></svg>diff --git a/web/app/components/base/icons/src/public/tracing/AliyunIcon.json b/web/app/components/base/icons/src/public/tracing/AliyunIcon.jsonnew file mode 100644index 00000000000..5cbb52c2370--- /dev/null+++ b/web/app/components/base/icons/src/public/tracing/AliyunIcon.json@@ -0,0 +1,118 @@+{+ "icon": {+ "type": "element",+ "isRootNode": true,+ "name": "svg",+ "attributes": {+ "xmlns": "http://www.w3.org/2000/svg",+ "xmlns:xlink": "http://www.w3.org/1999/xlink",+ "fill": "none",+ "version": "1.1",+ "width": "65",+ "height": "16",+ "viewBox": "0 0 65 16"+ },+ "children": [+ {+ "type": "element",+ "name": "defs",+ "children": [+ {+ "type": "element",+ "name": "clipPath",+ "attributes": {+ "id": "master_svg0_42_34281"+ },+ "children": [+ {+ "type": "element",+ "name": "rect",+ "attributes": {+ "x": "0",+ "y": "0",+ "width": "19",+ "height": "16",+ "rx": "0"+ }+ }+ ]+ }+ ]+ },+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "g",+ "attributes": {+ "clip-path": "url(#master_svg0_42_34281)"+ },+ "children": [+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "path",+ "attributes": {+ "d": "M4.06862,14.6667C3.79213,14.6667,3.45463,14.5688,3.05614,14.373C2.97908,14.3351,2.92692,14.3105,2.89968,14.2992C2.33193,14.0628,1.82911,13.7294,1.39123,13.2989C0.463742,12.3871,0,11.2874,0,10C0,8.71258,0.463742,7.61293,1.39123,6.70107C2.16172,5.94358,3.06404,5.50073,4.09819,5.37252C4.23172,3.98276,4.81755,2.77756,5.85569,1.75693C7.04708,0.585642,8.4857,0,10.1716,0C11.5256,0,12.743,0.396982,13.8239,1.19095C14.8847,1.97019,15.61,2.97855,16,4.21604L14.7045,4.61063C14.4016,3.64918,13.8374,2.86532,13.0121,2.25905C12.1719,1.64191,11.2251,1.33333,10.1716,1.33333C8.8602,1.33333,7.74124,1.7888,6.81467,2.69974C5.88811,3.61067,5.42483,4.71076,5.42483,6L5.42483,6.66667L4.74673,6.66667C3.81172,6.66667,3.01288,6.99242,2.35021,7.64393C1.68754,8.2954,1.35621,9.08076,1.35621,10C1.35621,10.9192,1.68754,11.7046,2.35021,12.3561C2.66354,12.6641,3.02298,12.9026,3.42852,13.0714C3.48193,13.0937,3.55988,13.13,3.66237,13.1803C3.87004,13.2823,4.00545,13.3333,4.06862,13.3333L4.06862,14.6667Z",+ "fill-rule": "evenodd",+ "fill": "#FF6A00",+ "fill-opacity": "1"+ }+ }+ ]+ },+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "path",+ "attributes": {+ "d": "M13.458613505859375,7.779393492279053C12.975613505859375,7.717463492279053,12.484813505859375,7.686503492279053,11.993983505859376,7.686503492279053C11.152583505859376,7.686503492279053,10.303403505859375,7.779393492279053,9.493183505859374,7.941943492279053C8.682953505859375,8.104503492279052,7.903893505859375,8.359943492279053,7.155983505859375,8.654083492279053C6.657383505859375,8.870823492279053,6.158783505859375,9.128843492279053,5.660181505859375,9.428153492279053C5.332974751859375,9.621673492279053,5.239486705859375,10.070633492279054,5.434253505859375,10.395743492279053L7.413073505859375,13.298533492279052C7.639003505859375,13.623603492279052,8.090863505859375,13.716463492279052,8.418073505859375,13.523003492279052C8.547913505859375,13.435263492279052,8.763453505859374,13.326893492279053,9.064693505859374,13.197863492279053C9.516553505859374,13.004333492279052,9.976203505859374,12.872733492279053,10.459223505859375,12.779863492279052C10.942243505859375,12.679263492279052,11.433053505859375,12.617333492279052,11.955023505859375,12.617333492279052L13.380683505859375,7.810353492279052L13.458613505859375,7.779393492279053ZM15.273813505859374,8.135463492279053L15.016753505859375,5.333333492279053L13.458613505859375,7.787133492279053C13.817013505859375,7.818093492279052,14.144213505859375,7.880023492279053,14.494743505859375,7.949683492279053C14.494743505859375,7.944523492279053,14.754433505859375,8.006453492279054,15.273813505859374,8.135463492279053ZM12.064083505859376,12.648273492279053L11.378523505859375,14.970463492279054L12.515943505859376,16.00003349227905L14.074083505859376,15.643933492279054L14.525943505859376,13.027603492279052C14.198743505859374,12.934663492279054,13.879283505859375,12.834063492279054,13.552083505859375,12.772133492279053C13.069083505859375,12.717933492279052,12.578283505859375,12.648273492279053,12.064083505859376,12.648273492279053ZM18.327743505859374,9.428153492279053C17.829143505859374,9.128843492279053,17.330543505859374,8.870823492279053,16.831943505859375,8.654083492279053C16.348943505859374,8.460573492279053,15.826943505859376,8.267053492279054,15.305013505859375,8.135463492279053L15.305013505859375,8.267053492279054L14.463613505859374,13.043063492279053C14.596083505859376,13.105003492279053,14.759683505859375,13.135933492279053,14.884283505859376,13.205603492279053C15.185523505859376,13.334623492279052,15.401043505859375,13.443003492279052,15.530943505859375,13.530733492279053C15.858143505859376,13.724263492279054,16.341143505859375,13.623603492279052,16.535943505859375,13.306263492279053L18.514743505859375,10.403483492279053C18.779643505859376,10.039673492279054,18.686143505859377,9.621673492279053,18.327743505859374,9.428153492279053Z",+ "fill": "#FF6A00",+ "fill-opacity": "1"+ }+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "path",+ "attributes": {+ "d": "M25.044,2.668L34.676,2.668L34.676,4.04L25.044,4.04L25.044,2.668ZM29.958,7.82Q29.258,9.066,28.355,10.41Q27.451999999999998,11.754,26.92,12.3L32.506,11.782Q31.442,10.158,30.84,9.346L32.058,8.562000000000001Q32.786,9.5,33.843,11.012Q34.9,12.524,35.516,13.546L34.214,14.526Q33.891999999999996,13.966,33.346000000000004,13.098Q32.016,13.182,29.734,13.378Q27.451999999999998,13.574,25.87,13.742L25.31,13.812L24.834,13.882L24.414,12.468Q24.708,12.37,24.862000000000002,12.265Q25.016,12.16,25.121,12.069Q25.226,11.978,25.268,11.936Q25.912,11.32,26.724,10.165Q27.536,9.01,28.208,7.82L23.854,7.82L23.854,6.434L35.866,6.434L35.866,7.82L29.958,7.82ZM42.656,7.414L42.656,8.576L41.354,8.576L41.354,1.814L42.656,1.87L42.656,7.036Q43.314,5.846,43.888000000000005,4.369Q44.462,2.892,44.714,1.6600000000000001L46.086,1.981999Q45.96,2.612,45.722,3.41L49.6,3.41L49.6,4.74L45.274,4.74Q44.616,6.56,43.706,8.128L42.656,7.414ZM38.596000000000004,2.346L39.884,2.402L39.884,8.212L38.596000000000004,8.212L38.596000000000004,2.346ZM46.184,4.964Q46.688,5.356,47.5,6.175Q48.312,6.994,48.788,7.582L47.751999999999995,8.59Q47.346000000000004,8.072,46.576,7.274Q45.806,6.476,45.204,5.902L46.184,4.964ZM48.41,9.01L48.41,12.706L49.894,12.706L49.894,13.966L37.391999999999996,13.966L37.391999999999996,12.706L38.848,12.706L38.848,9.01L48.41,9.01ZM41.676,10.256L40.164,10.256L40.164,12.706L41.676,12.706L41.676,10.256ZM42.908,12.706L44.364000000000004,12.706L44.364000000000004,10.256L42.908,10.256L42.908,12.706ZM45.582,12.706L47.108000000000004,12.706L47.108000000000004,10.256L45.582,10.256L45.582,12.706ZM54.906,7.456L55.116,8.394L54.178,8.814L54.178,12.818Q54.178,13.434,54.031,13.735Q53.884,14.036,53.534,14.162Q53.184,14.288,52.456,14.358L51.867999999999995,14.414L51.476,13.084L52.162,13.028Q52.512,13,52.652,12.958Q52.792,12.916,52.841,12.797Q52.89,12.678,52.89,12.384L52.89,9.36Q51.980000000000004,9.724,51.322,9.948L51.013999999999996,8.576Q51.798,8.324,52.89,7.876L52.89,5.524L51.42,5.524L51.42,4.166L52.89,4.166L52.89,1.7579989999999999L54.178,1.814L54.178,4.166L55.214,4.166L55.214,5.524L54.178,5.524L54.178,7.316L54.808,7.022L54.906,7.456ZM56.894,4.5440000000000005L56.894,6.098L55.564,6.098L55.564,3.256L58.686,3.256Q58.42,2.346,58.266,1.9260000000000002L59.624,1.7579989999999999Q59.848,2.276,60.142,3.256L63.25,3.256L63.25,6.098L61.962,6.098L61.962,4.5440000000000005L56.894,4.5440000000000005ZM59.008,6.322Q58.392,6.938,57.685,7.512Q56.978,8.086,55.956,8.841999999999999L55.242,7.764Q56.824,6.728,58.126,5.37L59.008,6.322ZM60.422,5.37Q61.024,5.776,62.095,6.581Q63.166,7.386,63.656,7.806L62.942,8.982Q62.368,8.45,61.332,7.652Q60.296,6.854,59.666,6.434L60.422,5.37ZM62.592,10.256L60.044,10.256L60.044,12.566L63.572,12.566L63.572,13.826L55.144,13.826L55.144,12.566L58.63,12.566L58.63,10.256L56.054,10.256L56.054,8.982L62.592,8.982L62.592,10.256Z",+ "fill": "#FF6A00",+ "fill-opacity": "1"+ }+ }+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ "name": "AliyunIcon"+}diff --git a/web/app/components/base/icons/src/public/tracing/AliyunIcon.tsx b/web/app/components/base/icons/src/public/tracing/AliyunIcon.tsxnew file mode 100644index 00000000000..5b062b8a86f--- /dev/null+++ b/web/app/components/base/icons/src/public/tracing/AliyunIcon.tsx@@ -0,0 +1,16 @@+// GENERATE BY script+// DON NOT EDIT IT MANUALLY++import * as React from 'react'+import data from './AliyunIcon.json'+import IconBase from '@/app/components/base/icons/IconBase'+import type { IconBaseProps, IconData } from '@/app/components/base/icons/IconBase'++const Icon = React.forwardRef<React.MutableRefObject<SVGElement>, Omit<IconBaseProps, 'data'>>((+ props,+ ref,+) => <IconBase {...props} ref={ref} data={data as IconData} />)++Icon.displayName = 'AliyunIcon'++export default Icondiff --git a/web/app/components/base/icons/src/public/tracing/AliyunIconBig.json b/web/app/components/base/icons/src/public/tracing/AliyunIconBig.jsonnew file mode 100644index 00000000000..ea60744dafa--- /dev/null+++ b/web/app/components/base/icons/src/public/tracing/AliyunIconBig.json@@ -0,0 +1,71 @@+{+ "icon": {+ "type": "element",+ "isRootNode": true,+ "name": "svg",+ "attributes": {+ "xmlns": "http://www.w3.org/2000/svg",+ "xmlns:xlink": "http://www.w3.org/1999/xlink",+ "fill": "none",+ "version": "1.1",+ "width": "96",+ "height": "24",+ "viewBox": "0 0 96 24"+ },+ "children": [+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "path",+ "attributes": {+ "d": "M6.10294,22C5.68819,22,5.18195,21.8532,4.58421,21.5595C4.46861,21.5027,4.39038,21.4658,4.34951,21.4488C3.49789,21.0943,2.74367,20.5941,2.08684,19.9484C0.695613,18.5806,0,16.9311,0,15C0,13.0689,0.695612,11.4194,2.08684,10.0516C3.24259,8.91537,4.59607,8.2511,6.14728,8.05878C6.34758,5.97414,7.22633,4.16634,8.78354,2.63539C10.5706,0.878463,12.7286,0,15.2573,0C17.2884,0,19.1146,0.595472,20.7358,1.78642C22.327,2.95528,23.4151,4.46783,24,6.32406L22.0568,6.91594C21.6024,5.47377,20.7561,4.29798,19.5181,3.38858C18.2579,2.46286,16.8377,2,15.2573,2C13.2903,2,11.6119,2.6832,10.222,4.04961C8.83217,5.41601,8.13725,7.06614,8.13725,9L8.13725,10L7.12009,10C5.71758,10,4.51932,10.4886,3.52532,11.4659C2.53132,12.4431,2.03431,13.6211,2.03431,15C2.03431,16.3789,2.53132,17.5569,3.52532,18.5341C3.99531,18.9962,4.53447,19.3538,5.14278,19.6071C5.2229,19.6405,5.33983,19.695,5.49356,19.7705C5.80505,19.9235,6.00818,20,6.10294,20L6.10294,22Z",+ "fill-rule": "evenodd",+ "fill": "#FF6A00",+ "fill-opacity": "1"+ }+ }+ ]+ },+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "path",+ "attributes": {+ "d": "M20.18796103515625,11.66909C19.46346103515625,11.5762,18.72726103515625,11.52975,17.991011035156248,11.52975C16.728921035156247,11.52975,15.45515103515625,11.66909,14.23981103515625,11.91292C13.02447103515625,12.156749999999999,11.85588103515625,12.539909999999999,10.73402103515625,12.98113C9.98612103515625,13.306239999999999,9.23822103515625,13.69327,8.49031803515625,14.14223C7.99950790415625,14.43251,7.85927603515625,15.10595,8.15142503515625,15.59361L11.11966103515625,19.9478C11.45855103515625,20.4354,12.13634103515625,20.5747,12.627151035156249,20.2845C12.821921035156251,20.152900000000002,13.14523103515625,19.990299999999998,13.59708103515625,19.796799999999998C14.27487103515625,19.506500000000003,14.964341035156249,19.3091,15.68887103515625,19.169800000000002C16.413401035156248,19.018900000000002,17.14962103515625,18.926000000000002,17.93258103515625,18.926000000000002L20.071061035156248,11.715530000000001L20.18796103515625,11.66909ZM22.91076103515625,12.20319L22.525161035156252,8L20.18796103515625,11.6807C20.72556103515625,11.72714,21.21636103515625,11.82003,21.74216103515625,11.92453C21.74216103515625,11.91679,22.13166103515625,12.00968,22.91076103515625,12.20319ZM18.09616103515625,18.9724L17.06782103515625,22.4557L18.773961035156248,24L21.11116103515625,23.465899999999998L21.788961035156248,19.5414C21.298161035156248,19.402,20.81896103515625,19.2511,20.32816103515625,19.1582C19.60366103515625,19.076900000000002,18.86746103515625,18.9724,18.09616103515625,18.9724ZM27.49166103515625,14.14223C26.74376103515625,13.69327,25.99586103515625,13.306239999999999,25.24796103515625,12.98113C24.52346103515625,12.69086,23.74046103515625,12.40058,22.95756103515625,12.20319L22.95756103515625,12.40058L21.69546103515625,19.5646C21.89416103515625,19.6575,22.139561035156248,19.7039,22.32646103515625,19.8084C22.77836103515625,20.0019,23.101661035156248,20.1645,23.29646103515625,20.2961C23.78726103515625,20.586399999999998,24.51176103515625,20.4354,24.80396103515625,19.959400000000002L27.77216103515625,15.605229999999999C28.16946103515625,15.05951,28.02926103515625,14.43251,27.49166103515625,14.14223Z",+ "fill": "#FF6A00",+ "fill-opacity": "1"+ }+ }+ ]+ },+ {+ "type": "element",+ "name": "g",+ "children": [+ {+ "type": "element",+ "name": "path",+ "attributes": {+ "d": "M35.785,3.8624638671875L50.233000000000004,3.8624638671875L50.233000000000004,5.9204638671875L35.785,5.9204638671875L35.785,3.8624638671875ZM43.156,11.5904638671875Q42.106,13.4594638671875,40.7515,15.4754638671875Q39.397,17.4914638671875,38.599000000000004,18.3104638671875L46.978,17.5334638671875Q45.382,15.0974638671875,44.479,13.8794638671875L46.306,12.7034638671875Q47.397999999999996,14.1104638671875,48.9835,16.3784638671875Q50.569,18.6464638671875,51.492999999999995,20.1794638671875L49.54,21.6494638671875Q49.057,20.8094638671875,48.238,19.5074638671875Q46.243,19.6334638671875,42.82,19.9274638671875Q39.397,20.2214638671875,37.024,20.4734638671875L36.184,20.5784638671875L35.47,20.6834638671875L34.84,18.5624638671875Q35.281,18.4154638671875,35.512,18.2579638671875Q35.743,18.1004638671875,35.9005,17.963963867187502Q36.058,17.8274638671875,36.121,17.7644638671875Q37.087,16.840463867187502,38.305,15.1079638671875Q39.522999999999996,13.3754638671875,40.531,11.5904638671875L34,11.5904638671875L34,9.5114638671875L52.018,9.5114638671875L52.018,11.5904638671875L43.156,11.5904638671875ZM62.203,10.9814638671875L62.203,12.7244638671875L60.25,12.7244638671875L60.25,2.5814638671875L62.203,2.6654638671875L62.203,10.4144638671875Q63.19,8.6294638671875,64.051,6.4139638671875Q64.912,4.1984638671875,65.28999999999999,2.3504638671875L67.348,2.8334628671875Q67.15899999999999,3.7784638671875,66.80199999999999,4.9754638671875L72.619,4.9754638671875L72.619,6.9704638671875L66.13,6.9704638671875Q65.143,9.7004638671875,63.778,12.0524638671875L62.203,10.9814638671875ZM56.113,3.3794638671875L58.045,3.4634638671875L58.045,12.1784638671875L56.113,12.1784638671875L56.113,3.3794638671875ZM67.495,7.3064638671875Q68.251,7.8944638671875,69.469,9.1229638671875Q70.687,10.3514638671875,71.40100000000001,11.2334638671875L69.84700000000001,12.7454638671875Q69.238,11.9684638671875,68.083,10.7714638671875Q66.928,9.5744638671875,66.025,8.7134638671875L67.495,7.3064638671875ZM70.834,13.3754638671875L70.834,18.9194638671875L73.06,18.9194638671875L73.06,20.8094638671875L54.307,20.8094638671875L54.307,18.9194638671875L56.491,18.9194638671875L56.491,13.3754638671875L70.834,13.3754638671875ZM60.733000000000004,15.2444638671875L58.465,15.2444638671875L58.465,18.9194638671875L60.733000000000004,18.9194638671875L60.733000000000004,15.2444638671875ZM62.581,18.9194638671875L64.765,18.9194638671875L64.765,15.2444638671875L62.581,15.2444638671875L62.581,18.9194638671875ZM66.592,18.9194638671875L68.881,18.9194638671875L68.881,15.2444638671875L66.592,15.2444638671875L66.592,18.9194638671875ZM80.578,11.0444638671875L80.893,12.4514638671875L79.48599999999999,13.0814638671875L79.48599999999999,19.0874638671875Q79.48599999999999,20.0114638671875,79.2655,20.4629638671875Q79.045,20.9144638671875,78.52000000000001,21.1034638671875Q77.995,21.2924638671875,76.90299999999999,21.3974638671875L76.021,21.4814638671875L75.43299999999999,19.4864638671875L76.462,19.4024638671875Q76.987,19.3604638671875,77.197,19.2974638671875Q77.407,19.2344638671875,77.4805,19.0559638671875Q77.554,18.8774638671875,77.554,18.4364638671875L77.554,13.9004638671875Q76.189,14.4464638671875,75.202,14.7824638671875L74.74000000000001,12.7244638671875Q75.916,12.3464638671875,77.554,11.6744638671875L77.554,8.1464638671875L75.34899999999999,8.1464638671875L75.34899999999999,6.1094638671875L77.554,6.1094638671875L77.554,2.4974628671875L79.48599999999999,2.5814638671875L79.48599999999999,6.1094638671875L81.03999999999999,6.1094638671875L81.03999999999999,8.1464638671875L79.48599999999999,8.1464638671875L79.48599999999999,10.8344638671875L80.431,10.3934638671875L80.578,11.0444638671875ZM83.56,6.6764638671875L83.56,9.0074638671875L81.565,9.0074638671875L81.565,4.7444638671875L86.24799999999999,4.7444638671875Q85.84899999999999,3.3794638671875,85.618,2.7494638671875L87.655,2.4974628671875Q87.991,3.2744638671875,88.432,4.7444638671875L93.094,4.7444638671875L93.094,9.0074638671875L91.162,9.0074638671875L91.162,6.6764638671875L83.56,6.6764638671875ZM86.731,9.3434638671875Q85.807,10.2674638671875,84.7465,11.1284638671875Q83.686,11.9894638671875,82.15299999999999,13.1234638671875L81.082,11.5064638671875Q83.455,9.9524638671875,85.408,7.9154638671875L86.731,9.3434638671875ZM88.852,7.9154638671875Q89.755,8.5244638671875,91.3615,9.731963867187499Q92.968,10.9394638671875,93.703,11.5694638671875L92.632,13.3334638671875Q91.771,12.5354638671875,90.217,11.3384638671875Q88.663,10.1414638671875,87.718,9.5114638671875L88.852,7.9154638671875ZM92.107,15.2444638671875L88.285,15.2444638671875L88.285,18.7094638671875L93.577,18.7094638671875L93.577,20.5994638671875L80.935,20.5994638671875L80.935,18.7094638671875L86.164,18.7094638671875L86.164,15.2444638671875L82.3,15.2444638671875L82.3,13.3334638671875L92.107,13.3334638671875L92.107,15.2444638671875Z",+ "fill": "#FF6A00",+ "fill-opacity": "1"+ }+ }+ ]+ }+ ]+ }+ ]+ },+ "name": "AliyunBigIcon"+}diff --git a/web/app/components/base/icons/src/public/tracing/AliyunIconBig.tsx b/web/app/components/base/icons/src/public/tracing/AliyunIconBig.tsxnew file mode 100644index 00000000000..0924f70fbd4--- /dev/null+++ b/web/app/components/base/icons/src/public/tracing/AliyunIconBig.tsx@@ -0,0 +1,16 @@+// GENERATE BY script+// DON NOT EDIT IT MANUALLY++import * as React from 'react'+import data from './AliyunIconBig.json'+import IconBase from '@/app/components/base/icons/IconBase'+import type { IconBaseProps, IconData } from '@/app/components/base/icons/IconBase'++const Icon = React.forwardRef<React.MutableRefObject<SVGElement>, Omit<IconBaseProps, 'data'>>((+ props,+ ref,+) => <IconBase {...props} ref={ref} data={data as IconData} />)++Icon.displayName = 'AliyunIconBig'++export default Icondiff --git a/web/app/components/base/icons/src/public/tracing/index.ts b/web/app/components/base/icons/src/public/tracing/index.tsindex 61a117e863e..07e3385f465 100644--- a/web/app/components/base/icons/src/public/tracing/index.ts+++ b/web/app/components/base/icons/src/public/tracing/index.ts@@ -11,3 +11,5 @@ export { default as PhoenixIcon } from './PhoenixIcon'export { default as TracingIcon } from './TracingIcon'export { default as WeaveIconBig } from './WeaveIconBig'export { default as WeaveIcon } from './WeaveIcon'+export { default as AliyunIconBig } from './AliyunIconBig'+export { default as AliyunIcon } from './AliyunIcon'diff --git a/web/app/components/base/select/index.tsx b/web/app/components/base/select/index.tsxindex 44cb0522f61..77d229672fc 100644--- a/web/app/components/base/select/index.tsx+++ b/web/app/components/base/select/index.tsx@@ -116,7 +116,7 @@ const Select: FC<ISelectProps> = ({if (!disabled)setOpen(!open)}- } className={classNames(`flex items-center h-9 w-full rounded-lg border-0 ${bgClassName} py-1.5 pl-3 pr-10 shadow-sm sm:text-sm sm:leading-6 focus-visible:outline-none focus-visible:bg-state-base-hover group-hover:bg-state-base-hover`, optionClassName)}>+ } className={classNames(`flex h-9 w-full items-center rounded-lg border-0 ${bgClassName} py-1.5 pl-3 pr-10 shadow-sm focus-visible:bg-state-base-hover focus-visible:outline-none group-hover:bg-state-base-hover sm:text-sm sm:leading-6`, optionClassName)}><div className='w-0 grow truncate text-left' title={selectedItem?.name}>{selectedItem?.name}</div></ComboboxButton>}<ComboboxButton className="absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none" onClick={@@ -137,7 +137,7 @@ const Select: FC<ISelectProps> = ({value={item}className={({ active }: { active: boolean }) =>classNames(- 'relative cursor-default select-none py-2 pl-3 pr-9 rounded-lg hover:bg-state-base-hover text-text-secondary',+ 'relative cursor-default select-none rounded-lg py-2 pl-3 pr-9 text-text-secondary hover:bg-state-base-hover',active ? 'bg-state-base-hover' : '',optionClassName,)@@ -225,8 +225,8 @@ const SimpleSelect: FC<ISelectProps> = ({if (listboxRef.current)onOpenChange?.(listboxRef.current.getAttribute('data-open') !== null)})- }} className={classNames(`flex items-center w-full h-full rounded-lg border-0 bg-components-input-bg-normal pl-3 pr-10 sm:text-sm sm:leading-6 focus-visible:outline-none focus-visible:bg-state-base-hover-alt group-hover/simple-select:bg-state-base-hover-alt ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}`, className)}>- <span className={classNames('block truncate text-left system-sm-regular text-components-input-text-filled', !selectedItem?.name && 'text-components-input-text-placeholder')}>{selectedItem?.name ?? localPlaceholder}</span>+ }} className={classNames(`flex h-full w-full items-center rounded-lg border-0 bg-components-input-bg-normal pl-3 pr-10 focus-visible:bg-state-base-hover-alt focus-visible:outline-none group-hover/simple-select:bg-state-base-hover-alt sm:text-sm sm:leading-6 ${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}`, className)}>+ <span className={classNames('system-sm-regular block truncate text-left text-components-input-text-filled', !selectedItem?.name && 'text-components-input-text-placeholder')}>{selectedItem?.name ?? localPlaceholder}</span><span className="absolute inset-y-0 right-0 flex items-center pr-2">{isLoading ? <RiLoader4Line className='h-3.5 w-3.5 animate-spin text-text-secondary' />: (selectedItem && !notClearable)@@ -252,13 +252,13 @@ const SimpleSelect: FC<ISelectProps> = ({)}{(!disabled) && (- <ListboxOptions className={classNames('absolute z-10 mt-1 px-1 max-h-60 w-full overflow-auto rounded-xl bg-components-panel-bg-blur backdrop-blur-sm py-1 text-base shadow-lg border-components-panel-border border-[0.5px] focus:outline-none sm:text-sm', optionWrapClassName)}>+ <ListboxOptions className={classNames('absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-bg-blur px-1 py-1 text-base shadow-lg backdrop-blur-sm focus:outline-none sm:text-sm', optionWrapClassName)}>{items.map((item: Item) => (<ListboxOptionkey={item.value}className={classNames(- 'relative cursor-pointer select-none py-2 pl-3 pr-9 rounded-lg hover:bg-state-base-hover text-text-secondary',+ 'relative cursor-pointer select-none rounded-lg py-2 pl-3 pr-9 text-text-secondary hover:bg-state-base-hover',optionClassName,)}@@ -338,7 +338,7 @@ const PortalSelect: FC<PortalSelectProps> = ({: (<divclassName={classNames(`- group flex items-center justify-between px-2.5 h-9 rounded-lg border-0 bg-components-input-bg-normal hover:bg-state-base-hover-alt text-sm ${readonly ? 'cursor-not-allowed' : 'cursor-pointer'}+ group flex h-9 items-center justify-between rounded-lg border-0 bg-components-input-bg-normal px-2.5 text-sm hover:bg-state-base-hover-alt ${readonly ? 'cursor-not-allowed' : 'cursor-pointer'}`, triggerClassName, triggerClassNameFn?.(open))}title={selectedItem?.name}>@@ -358,7 +358,7 @@ const PortalSelect: FC<PortalSelectProps> = ({</PortalToFollowElemTrigger><PortalToFollowElemContent className={`z-20 ${popupClassName}`}><div- className={classNames('px-1 py-1 max-h-60 overflow-auto rounded-md text-base shadow-lg border-components-panel-border bg-components-panel-bg border-[0.5px] focus:outline-none sm:text-sm', popupInnerClassName)}+ className={classNames('max-h-60 overflow-auto rounded-md border-[0.5px] border-components-panel-border bg-components-panel-bg px-1 py-1 text-base shadow-lg focus:outline-none sm:text-sm', popupInnerClassName)}>{items.map((item: Item) => (<divdiff --git a/web/app/components/header/nav/index.tsx b/web/app/components/header/nav/index.tsxindex dc68b712cb2..70cbd6d37b5 100644--- a/web/app/components/header/nav/index.tsx+++ b/web/app/components/header/nav/index.tsx@@ -54,7 +54,7 @@ const Nav = ({<divonClick={() => setAppDetail()}className={classNames(`- flex items-center h-7 px-2.5 cursor-pointer rounded-[10px]+ flex h-7 cursor-pointer items-center rounded-[10px] px-2.5${isActivated ? 'text-components-main-nav-nav-button-text-active' : 'text-components-main-nav-nav-button-text'}${curNav && isActivated && 'hover:bg-components-main-nav-nav-button-bg-active-hover'}`)}diff --git a/web/app/components/header/plugins-nav/index.tsx b/web/app/components/header/plugins-nav/index.tsxindex b1f903bafbe..7b28e27639c 100644--- a/web/app/components/header/plugins-nav/index.tsx+++ b/web/app/components/header/plugins-nav/index.tsx@@ -31,8 +31,8 @@ const PluginsNav = ({)}><divclassName={classNames(- 'relative flex flex-row h-8 p-1.5 gap-0.5 border border-transparent items-center justify-center rounded-xl system-sm-medium',- activated && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active shadow-md text-components-main-nav-nav-button-text',+ 'system-sm-medium relative flex h-8 flex-row items-center justify-center gap-0.5 rounded-xl border border-transparent p-1.5',+ activated && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active text-components-main-nav-nav-button-text shadow-md',!activated && 'text-text-tertiary hover:bg-state-base-hover hover:text-text-secondary',(isInstallingWithError || isFailed) && !activated && 'border-components-panel-border-subtle',)}diff --git a/web/app/components/header/tools-nav/index.tsx b/web/app/components/header/tools-nav/index.tsxindex bc9351cf70d..eb8d806c029 100644--- a/web/app/components/header/tools-nav/index.tsx+++ b/web/app/components/header/tools-nav/index.tsx@@ -22,7 +22,7 @@ const ToolsNav = ({return (<Link href="/tools" className={classNames('group text-sm font-medium',- activated && 'font-semibold bg-components-main-nav-nav-button-bg-active hover:bg-components-main-nav-nav-button-bg-active-hover shadow-md',+ activated && 'hover:bg-components-main-nav-nav-button-bg-active-hover bg-components-main-nav-nav-button-bg-active font-semibold shadow-md',activated ? 'text-components-main-nav-nav-button-text-active' : 'text-components-main-nav-nav-button-text hover:bg-components-main-nav-nav-button-bg-hover',className,)}>diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/code-editor.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/code-editor.tsxindex 83c5d605730..920757c6a63 100644--- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/code-editor.tsx+++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/code-editor.tsx@@ -98,7 +98,7 @@ const CodeEditor: FC<CodeEditorProps> = ({}, [])return (- <div className={classNames('flex flex-col h-full bg-components-input-bg-normal overflow-hidden', hideTopMenu && 'pt-2', className)}>+ <div className={classNames('flex h-full flex-col overflow-hidden bg-components-input-bg-normal', hideTopMenu && 'pt-2', className)}>{!hideTopMenu && (<div className='flex items-center justify-between pl-2 pr-1 pt-1'><div className='system-xs-semibold-uppercase py-0.5 text-text-secondary'>diff --git a/web/app/signin/components/social-auth.tsx b/web/app/signin/components/social-auth.tsxindex 4ae0b7f1a73..283c650f233 100644--- a/web/app/signin/components/social-auth.tsx+++ b/web/app/signin/components/social-auth.tsx@@ -32,7 +32,7 @@ export default function SocialAuth(props: SocialAuthProps) {<span className={classNames(style.githubIcon,- 'w-5 h-5 mr-2',+ 'mr-2 h-5 w-5',)} /><span className="truncate">{t('login.withGitHub')}</span>@@ -50,7 +50,7 @@ export default function SocialAuth(props: SocialAuthProps) {<span className={classNames(style.googleIcon,- 'w-5 h-5 mr-2',+ 'mr-2 h-5 w-5',)} /><span className="truncate">{t('login.withGoogle')}</span>diff --git a/web/i18n/en-US/app.ts b/web/i18n/en-US/app.tsindex b6496e9b9cd..c6f35d3df2b 100644--- a/web/i18n/en-US/app.ts+++ b/web/i18n/en-US/app.ts@@ -174,6 +174,10 @@ const translation = {title: 'Weave',description: 'Weave is an open-source platform for evaluating, testing, and monitoring LLM applications.',},+ aliyun: {+ title: 'LLM observability',+ description: 'The SaaS observability platform provided by Alibaba Cloud enables out of box monitoring, tracing, and evaluation of Dify applications.',+ },inUse: 'In use',configProvider: {title: 'Config ',diff --git a/web/i18n/zh-Hans/app.ts b/web/i18n/zh-Hans/app.tsindex 07ecc018fbe..904ec7e5faf 100644--- a/web/i18n/zh-Hans/app.ts+++ b/web/i18n/zh-Hans/app.ts@@ -185,6 +185,10 @@ const translation = {title: '编织',description: 'Weave 是一个开源平台,用于评估、测试和监控大型语言模型应用程序。',},+ aliyun: {+ title: '大模型可观测',+ description: '阿里云提供的SaaS化可观测平台,一键开启Dify应用的监控追踪和评估。',+ },},appSelector: {label: '应用',diff --git a/web/models/app.ts b/web/models/app.tsindex 369cf323878..5798670426e 100644--- a/web/models/app.ts+++ b/web/models/app.ts@@ -1,9 +1,9 @@-import type { ArizeConfig, LangFuseConfig, LangSmithConfig, OpikConfig, PhoenixConfig, TracingProvider, WeaveConfig } from '@/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type'+import type { AliyunConfig, LangFuseConfig, LangSmithConfig, OpikConfig, PhoenixConfig, TracingProvider, WeaveConfig } from '@/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/type'import type { App, AppTemplate, SiteConfig } from '@/types/app'import type { Dependency } from '@/app/components/plugins/types'/* export type App = {- id: string+ id: strinname: stringdescription: stringmode: AppMode@@ -166,5 +166,5 @@ export type TracingStatus = {export type TracingConfig = {tracing_provider: TracingProvider- tracing_config: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig+ tracing_config: ArizeConfig | PhoenixConfig | LangSmithConfig | LangFuseConfig | OpikConfig | WeaveConfig | AliyunConfig}