Send traces and metrics from Dify applications to Alibaba Cloud Monitor (ARMS) via OpenTelemetry
What is Alibaba Cloud Monitor
Alibaba Cloud provides a fully managed, maintenance-free observability platform that enables one-click monitoring, tracing, and evaluation of Dify applications.
Alibaba Cloud Monitor natively supports Python/Golang/Java applications through LoongSuite agents and open-source OpenTelemetry agents. In addition to one-click monitoring of Dify LLM applications, it also supports end-to-end observability of Dify components and their upstream and downstream dependencies through non-invasive agents.For more details, please refer to the Cloud Monitor documentation.
How to Configure Alibaba Cloud Monitor
1. Get Alibaba Cloud Endpoint and License Key
Log in to the ARMS console, and click Integration Center in the left navigation bar.
In the Server-side Applications area, click the OpenTelemetry card.
In the OpenTelemetry panel that appears, select gRPC as the export protocol, and select the connection method and region according to your actual deployment.
Save the Public Endpoint and Authentication Token (License Key).
The Endpoint does not include a port number, for example http://tracing-cn-heyuan.arms.aliyun.com.
2. Configure Cloud Monitor in Dify
Requires Dify v1.6.0 or later.
Log in to the Dify console and navigate to the application you want to monitor.
Open Monitoring in the left navigation bar.
Click Tracing app performance, then click Configure in the Cloud Monitor area.
In the dialog that appears, enter the License Key and Endpoint obtained in step 1, and customize the App Name (the application name displayed in the ARMS console), then click Save & Enable.
View Monitoring Data in Alibaba Cloud Monitor
After configuration, debug or production data from applications in Dify can be monitored in Cloud Monitor.
Method 1: Jump to ARMS Console from Dify Application
In the Dify console, select an application with tracing enabled, go to Tracing Configuration, and click View in the Cloud Monitor area.
Method 2: View Directly in ARMS Console
Go to the corresponding Dify application in the LLM Application Monitoring > Application List page of the ARMS console.
Access More Data
Cloud Monitor provides multi-language non-invasive agents that support accessing various components of the Dify cluster to achieve end-to-end tracing.
Cloud Monitor supports collecting data from Dify’s Workflow/Chatflow/Chat/Agent applications, including execution details of workflows and workflow nodes, covering model calls, tool calls, knowledge retrieval, execution details of various process nodes, as well as metadata such as conversations and user information.
Workflow/Chatflow Trace Information
Workflow
Alibaba Cloud Monitor Trace
workflow_id
Unique identifier of the Workflow
conversation_id
Conversation ID
workflow_run_id
ID of this run
tenant_id
Tenant ID
elapsed_time
Duration of this run
status
Run status
version
Workflow version
total_tokens
Total tokens used in this run
file_list
List of processed files
triggered_from
Source that triggered this run
workflow_run_inputs
Input data for this run
workflow_run_outputs
Output data for this run
error
Errors that occurred during this run
query
Query used during runtime
workflow_app_log_id
Workflow application log ID
message_id
Associated message ID
start_time
Run start time
end_time
Run end time
Workflow Trace Metadata
workflow_id - Unique identifier of the Workflow
conversation_id - Conversation ID
workflow_run_id - ID of this run
tenant_id - Tenant ID
elapsed_time - Duration of this run
status - Run status
version - Workflow version
total_tokens - Total tokens used in this run
file_list - List of processed files
triggered_from - Trigger source
Message Trace Information
Message
Alibaba Cloud Monitor Trace
message_id
Message ID
message_data
Message data
user_session_id
User’s session_id
conversation_model
Conversation model
message_tokens
Number of tokens in the message
answer_tokens
Number of tokens in the answer
total_tokens
Total tokens in message and answer
error
Error information
inputs
Input data
outputs
Output data
file_list
List of processed files
start_time
Start time
end_time
End time
message_file_data
File data associated with the message
conversation_mode
Conversation mode
Message Trace Metadata
conversation_id - ID of the conversation to which the message belongs
ls_provider - Model provider
ls_model_name - Model ID
status - Message status
from_end_user_id - ID of the sending user
from_account_id - ID of the sending account
agent_based - Whether it is agent-based
workflow_run_id - Workflow run ID
from_source - Message source
message_id - Message ID
Dataset Retrieval Trace Information
Dataset Retrieval
Alibaba Cloud Monitor Trace
message_id
Message ID
inputs
Input content
documents
Document data
start_time
Start time
end_time
End time
message_data
Message data
Dataset Retrieval Trace Metadata
message_id - Message ID
ls_provider - Model provider
ls_model_name - Model ID
status - Message status
from_end_user_id - ID of the sending user
from_account_id - ID of the sending account
agent_based - Whether it is agent-based
workflow_run_id - Workflow run ID
from_source - Message source
Tool Trace Information
Tool
Alibaba Cloud Monitor Trace
message_id
Message ID
tool_name
Tool name
start_time
Start time
end_time
End time
tool_inputs
Tool inputs
tool_outputs
Tool outputs
message_data
Message data
error
Error information (if any)
inputs
Input content of the message
outputs
Answer content of the message
tool_config
Tool configuration
time_cost
Time cost
tool_parameters
Tool parameters
file_url
URL of associated file
Tool Trace Metadata
message_id - Message ID
tool_name - Tool name
tool_inputs - Tool inputs
tool_outputs - Tool outputs
tool_config - Tool configuration
time_cost - Time cost
error - Error information
tool_parameters - Tool parameters
message_file_id - Message file ID
created_by_role - Creator role
created_user_id - Creator user ID
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Dify Enterprise Docs","colors":{"primary":"#0060FF","light":"#688FE8","dark":"#0034FF"},"logo":{"light":"https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg","dark":"https://assets-docs.dify.ai/2025/05/c51f1cda47c1d9a4a162d7736f6e4c53.svg"},"favicon":"https://mintcdn.com/dify-enterprise-docs/zvhvyUvEpyoIONBf/logo/dify-logo.png?fit=max\u0026auto=format\u0026n=zvhvyUvEpyoIONBf\u0026q=85\u0026s=e0afd8349b7a272ad12280680a53043c","navbar":{"links":[{"href":"mailto:support@dify.ai","label":"Support"}]},"footer":{"socials":{"x":"https://x.com/dify_ai","github":"https://github.com/langgenius/dify","linkedin":"https://www.linkedin.com/company/langgenius"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"en/3.13.x/deploy/checklist"},{"language":"zh","href":"zh/3.13.x/deploy/checklist"},{"language":"ja","href":"ja/3.13.x/deploy/checklist"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dify-enterprise-docs","hasAudioNarration":false,"actualSubdomain":"dify-enterprise-docs","customDomains":["enterprise-docs.dify.ai"],"gitSource":{"type":"github","owner":"langgenius","repo":"dify-enterprise-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af427f9ab305b91f7cbee03","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"en","tag":"Developer Resources","count":1947},{"language":"ja","tag":"開発者リソース","count":1947},{"language":"zh","tag":"开发者资源","count":1947},{"language":"en","tag":"Use","count":1401},{"language":"ja","tag":"使い方","count":1401},{"language":"zh","tag":"使用","count":1401},{"language":"en","tag":"Workspace API","count":1353},{"language":"ja","tag":"Workspace API","count":1353},{"language":"zh","tag":"Workspace API","count":1353},{"language":"en","tag":"Knowledge APIs","count":639},{"language":"ja","tag":"ナレッジ API","count":639},{"language":"zh","tag":"知识库 API","count":639},{"language":"en","tag":"Orchestrate","count":620},{"language":"ja","tag":"オーケストレーション","count":620},{"language":"zh","tag":"编排","count":620},{"language":"en","tag":"App APIs","count":545},{"language":"ja","tag":"アプリ API","count":545},{"language":"zh","tag":"应用 API","count":545},{"language":"en","tag":"Workflow \u0026 Chatflow","count":533},{"language":"ja","tag":"ワークフローとチャットフロー","count":533},{"language":"zh","tag":"工作流与对话流","count":533},{"language":"en","tag":"Deploy","count":530},{"language":"ja","tag":"デプロイ","count":530},{"language":"zh","tag":"部署","count":530},{"language":"en","tag":"Plugins","count":524},{"language":"ja","tag":"プラグイン開発","count":522},{"language":"zh","tag":"插件开发","count":522},{"language":"ja","tag":"管理","count":470},{"language":"zh","tag":"管理","count":470},{"language":"en","tag":"Administer","count":420}],"searchSettings":{"maxResults":12}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"body{text-autospace:normal}html[data-current-path=\"/\"] .nav-tabs{display:none}"}],"page":{"pagePath":"en/3.13.x/use/monitor/integrations/integrate-aliyun","slug":"/en/3.13.x/use/monitor/integrations/integrate-aliyun","pageMetadata":{"title":"Integrate with Alibaba Cloud Monitor","sidebarTitle":"Alibaba Cloud Monitor","description":"Send traces and metrics from Dify applications to Alibaba Cloud Monitor (ARMS) via OpenTelemetry","href":"/en/3.13.x/use/monitor/integrations/integrate-aliyun"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send traces and metrics from Dify applications to Alibaba Cloud Monitor (ARMS) via OpenTelemetry\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,img:`img`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Frame,Heading,Info,Note,Table}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`what-is-alibaba-cloud-monitor`,children:`What is Alibaba Cloud Monitor`}),`\n`,_jsx(_components.p,{children:`Alibaba Cloud provides a fully managed, maintenance-free observability platform that enables one-click monitoring, tracing, and evaluation of Dify applications.`}),`\n`,_jsxs(Info,{children:[_jsxs(_components.p,{children:[`Alibaba Cloud Monitor natively supports Python/Golang/Java applications through `,_jsx(_components.a,{href:`https://github.com/alibaba/loongsuite-python-agent`,children:`LoongSuite`}),` agents and open-source OpenTelemetry agents. In addition to one-click monitoring of Dify LLM applications, it also supports end-to-end observability of Dify components and their upstream and downstream dependencies through non-invasive agents.`]}),_jsxs(_components.p,{children:[`For more details, please refer to the `,_jsx(_components.a,{href:`https://www.alibabacloud.com/help/en/cms/cloudmonitor-1-0/product-overview/what-is-cloudmonitor?spm=a3c0i.63551.2277339270.1.76c7112eeKEvSr`,children:`Cloud Monitor documentation`}),`.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-configure-alibaba-cloud-monitor`,children:`How to Configure Alibaba Cloud Monitor`}),`\n`,_jsx(Heading,{level:`3`,id:`1-get-alibaba-cloud-endpoint-and-license-key`,children:`1. Get Alibaba Cloud Endpoint and License Key`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Log in to the `,_jsx(_components.a,{href:`https://account.alibabacloud.com/login/login.htm?spm=5176.12901015-2.0.0.68d74b84XRatpU`,children:`ARMS console`}),`, and click `,_jsx(_components.strong,{children:`Integration Center`}),` in the left navigation bar.`]}),`\n`,_jsxs(_components.li,{children:[`In the `,_jsx(_components.strong,{children:`Server-side Applications`}),` area, click the `,_jsx(_components.strong,{children:`OpenTelemetry`}),` card.`]}),`\n`,_jsxs(_components.li,{children:[`In the `,_jsx(_components.strong,{children:`OpenTelemetry`}),` panel that appears, select `,_jsx(_components.strong,{children:`gRPC`}),` as the export protocol, and select the connection method and region according to your actual deployment.`]}),`\n`]}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://dify-public-resources.oss-cn-hangzhou.aliyuncs.com/dify-doc/get_endpoint.png`,alt:`Get Alibaba Cloud Access Point`})})}),`\n`,_jsxs(_components.ol,{start:`4`,children:[`\n`,_jsxs(_components.li,{children:[`Save the `,_jsx(_components.strong,{children:`Public Endpoint`}),` and `,_jsx(_components.strong,{children:`Authentication Token (License Key)`}),`.`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The Endpoint does not include a port number, for example `,_jsx(_components.code,{children:`http://tracing-cn-heyuan.arms.aliyun.com`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`2-configure-cloud-monitor-in-dify`,children:`2. Configure Cloud Monitor in Dify`}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`Requires Dify v1.6.0 or later.`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Log in to the Dify console and navigate to the application you want to monitor.`}),`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.strong,{children:`Monitoring`}),` in the left navigation bar.`]}),`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Tracing app performance`}),`, then click `,_jsx(_components.strong,{children:`Configure`}),` in the `,_jsx(_components.strong,{children:`Cloud Monitor`}),` area.`]}),`\n`]}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://dify-public-resources.oss-cn-hangzhou.aliyuncs.com/dify-doc/config_cms.png`,alt:`Configure Alibaba Cloud Monitor`})})}),`\n`,_jsxs(_components.ol,{start:`4`,children:[`\n`,_jsxs(_components.li,{children:[`In the dialog that appears, enter the `,_jsx(_components.strong,{children:`License Key`}),` and `,_jsx(_components.strong,{children:`Endpoint`}),` obtained in step 1, and customize the `,_jsx(_components.strong,{children:`App Name`}),` (the application name displayed in the ARMS console), then click `,_jsx(_components.strong,{children:`Save \u0026 Enable`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`view-monitoring-data-in-alibaba-cloud-monitor`,children:`View Monitoring Data in Alibaba Cloud Monitor`}),`\n`,_jsx(_components.p,{children:`After configuration, debug or production data from applications in Dify can be monitored in Cloud Monitor.`}),`\n`,_jsx(Heading,{level:`3`,id:`method-1-jump-to-arms-console-from-dify-application`,children:`Method 1: Jump to ARMS Console from Dify Application`}),`\n`,_jsxs(_components.p,{children:[`In the Dify console, select an application with tracing enabled, go to `,_jsx(_components.strong,{children:`Tracing Configuration`}),`, and click `,_jsx(_components.strong,{children:`View`}),` in the `,_jsx(_components.strong,{children:`Cloud Monitor`}),` area.`]}),`\n`,_jsx(Heading,{level:`3`,id:`method-2-view-directly-in-arms-console`,children:`Method 2: View Directly in ARMS Console`}),`\n`,_jsxs(_components.p,{children:[`Go to the corresponding Dify application in the `,_jsx(_components.strong,{children:`LLM Application Monitoring > Application List`}),` page of the ARMS console.`]}),`\n`,_jsx(Heading,{level:`2`,id:`access-more-data`,children:`Access More Data`}),`\n`,_jsx(_components.p,{children:`Cloud Monitor provides multi-language non-invasive agents that support accessing various components of the Dify cluster to achieve end-to-end tracing.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Dify Component`}),_jsx(_components.th,{children:`Agent`}),_jsx(_components.th,{children:`Details`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Nginx`}),_jsx(_components.td,{children:`OpenTelemetry Agent`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`https://www.alibabacloud.com/help/en/opentelemetry/user-guide/use-opentelemetry-to-perform-tracing-analysis-on-nginx?spm=a2c63.l28256.help-menu-search-90275.d_1`,children:`Use OpenTelemetry for Nginx Tracing`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API`}),_jsx(_components.td,{children:`LoongSuite-Python Agent`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`https://github.com/alibaba/loongsuite-python-agent/blob/main/README.md`,children:`loongsuite-python-agent`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sandbox`}),_jsx(_components.td,{children:`LoongSuite-Go Agent`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`https://github.com/alibaba/loongsuite-go-agent/blob/main/README.md`,children:`loongsuite-go-agent`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Worker`}),_jsx(_components.td,{children:`OpenTelemetry Agent`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`https://www.alibabacloud.com/help/en/opentelemetry/user-guide/use-managed-service-for-opentelemetry-to-submit-the-trace-data-of-python-applications?spm=a2c63.p38356.help-menu-90275.d_2_0_5_0.18ee53a4EGoGuS`,children:`Submit Python Application Data via OpenTelemetry`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Plugin-Daemon`}),_jsx(_components.td,{children:`LoongSuite-Go Agent`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`https://github.com/alibaba/loongsuite-go-agent/blob/main/README.md`,children:`loongsuite-go-agent`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`monitoring-data-list`,children:`Monitoring Data List`}),`\n`,_jsx(_components.p,{children:`Cloud Monitor supports collecting data from Dify’s Workflow/Chatflow/Chat/Agent applications, including execution details of workflows and workflow nodes, covering model calls, tool calls, knowledge retrieval, execution details of various process nodes, as well as metadata such as conversations and user information.`}),`\n`,_jsx(Heading,{level:`3`,id:`workflow/chatflow-trace-information`,children:`Workflow/Chatflow Trace Information`}),`\n`,_jsxs(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Workflow`}),_jsx(`th`,{children:`Alibaba Cloud Monitor Trace`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`workflow_id`}),_jsx(`td`,{children:`Unique identifier of the Workflow`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`conversation_id`}),_jsx(`td`,{children:`Conversation ID`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`workflow_run_id`}),_jsx(`td`,{children:`ID of this run`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`tenant_id`}),_jsx(`td`,{children:`Tenant ID`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`elapsed_time`}),_jsx(`td`,{children:`Duration of this run`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`status`}),_jsx(`td`,{children:`Run status`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`version`}),_jsx(`td`,{children:`Workflow version`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`total_tokens`}),_jsx(`td`,{children:`Total tokens used in this run`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`file_list`}),_jsx(`td`,{children:`List of processed files`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`triggered_from`}),_jsx(`td`,{children:`Source that triggered this run`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`workflow_run_inputs`}),_jsx(`td`,{children:`Input data for this run`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`workflow_run_outputs`}),_jsx(`td`,{children:`Output data for this run`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`error`}),_jsx(`td`,{children:`Errors that occurred during this run`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`query`}),_jsx(`td`,{children:`Query used during runtime`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`workflow_app_log_id`}),_jsx(`td`,{children:`Workflow application log ID`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_id`}),_jsx(`td`,{children:`Associated message ID`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`Run start time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`Run end time`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Workflow Trace Metadata`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`workflow_id - Unique identifier of the Workflow`}),`\n`,_jsx(_components.li,{children:`conversation_id - Conversation ID`}),`\n`,_jsx(_components.li,{children:`workflow_run_id - ID of this run`}),`\n`,_jsx(_components.li,{children:`tenant_id - Tenant ID`}),`\n`,_jsx(_components.li,{children:`elapsed_time - Duration of this run`}),`\n`,_jsx(_components.li,{children:`status - Run status`}),`\n`,_jsx(_components.li,{children:`version - Workflow version`}),`\n`,_jsx(_components.li,{children:`total_tokens - Total tokens used in this run`}),`\n`,_jsx(_components.li,{children:`file_list - List of processed files`}),`\n`,_jsx(_components.li,{children:`triggered_from - Trigger source`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`message-trace-information`,children:`Message Trace Information`}),`\n`,_jsxs(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Message`}),_jsx(`th`,{children:`Alibaba Cloud Monitor Trace`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_id`}),_jsx(`td`,{children:`Message ID`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_data`}),_jsx(`td`,{children:`Message data`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`user_session_id`}),_jsx(`td`,{children:`User’s session_id`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`conversation_model`}),_jsx(`td`,{children:`Conversation model`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_tokens`}),_jsx(`td`,{children:`Number of tokens in the message`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`answer_tokens`}),_jsx(`td`,{children:`Number of tokens in the answer`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`total_tokens`}),_jsx(`td`,{children:`Total tokens in message and answer`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`error`}),_jsx(`td`,{children:`Error information`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`Input data`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`outputs`}),_jsx(`td`,{children:`Output data`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`file_list`}),_jsx(`td`,{children:`List of processed files`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`Start time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`End time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_file_data`}),_jsx(`td`,{children:`File data associated with the message`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`conversation_mode`}),_jsx(`td`,{children:`Conversation mode`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Message Trace Metadata`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`conversation_id - ID of the conversation to which the message belongs`}),`\n`,_jsx(_components.li,{children:`ls_provider - Model provider`}),`\n`,_jsx(_components.li,{children:`ls_model_name - Model ID`}),`\n`,_jsx(_components.li,{children:`status - Message status`}),`\n`,_jsx(_components.li,{children:`from_end_user_id - ID of the sending user`}),`\n`,_jsx(_components.li,{children:`from_account_id - ID of the sending account`}),`\n`,_jsx(_components.li,{children:`agent_based - Whether it is agent-based`}),`\n`,_jsx(_components.li,{children:`workflow_run_id - Workflow run ID`}),`\n`,_jsx(_components.li,{children:`from_source - Message source`}),`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`dataset-retrieval-trace-information`,children:`Dataset Retrieval Trace Information`}),`\n`,_jsxs(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Dataset Retrieval`}),_jsx(`th`,{children:`Alibaba Cloud Monitor Trace`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_id`}),_jsx(`td`,{children:`Message ID`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`Input content`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`documents`}),_jsx(`td`,{children:`Document data`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`Start time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`End time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_data`}),_jsx(`td`,{children:`Message data`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Dataset Retrieval Trace Metadata`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`ls_provider - Model provider`}),`\n`,_jsx(_components.li,{children:`ls_model_name - Model ID`}),`\n`,_jsx(_components.li,{children:`status - Message status`}),`\n`,_jsx(_components.li,{children:`from_end_user_id - ID of the sending user`}),`\n`,_jsx(_components.li,{children:`from_account_id - ID of the sending account`}),`\n`,_jsx(_components.li,{children:`agent_based - Whether it is agent-based`}),`\n`,_jsx(_components.li,{children:`workflow_run_id - Workflow run ID`}),`\n`,_jsx(_components.li,{children:`from_source - Message source`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`tool-trace-information`,children:`Tool Trace Information`}),`\n`,_jsxs(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Tool`}),_jsx(`th`,{children:`Alibaba Cloud Monitor Trace`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_id`}),_jsx(`td`,{children:`Message ID`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`tool_name`}),_jsx(`td`,{children:`Tool name`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`Start time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`End time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`tool_inputs`}),_jsx(`td`,{children:`Tool inputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`tool_outputs`}),_jsx(`td`,{children:`Tool outputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_data`}),_jsx(`td`,{children:`Message data`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`error`}),_jsx(`td`,{children:`Error information (if any)`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`Input content of the message`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`outputs`}),_jsx(`td`,{children:`Answer content of the message`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`tool_config`}),_jsx(`td`,{children:`Tool configuration`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`time_cost`}),_jsx(`td`,{children:`Time cost`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`tool_parameters`}),_jsx(`td`,{children:`Tool parameters`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`file_url`}),_jsx(`td`,{children:`URL of associated file`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Tool Trace Metadata`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`tool_name - Tool name`}),`\n`,_jsx(_components.li,{children:`tool_inputs - Tool inputs`}),`\n`,_jsx(_components.li,{children:`tool_outputs - Tool outputs`}),`\n`,_jsx(_components.li,{children:`tool_config - Tool configuration`}),`\n`,_jsx(_components.li,{children:`time_cost - Time cost`}),`\n`,_jsx(_components.li,{children:`error - Error information`}),`\n`,_jsx(_components.li,{children:`tool_parameters - Tool parameters`}),`\n`,_jsx(_components.li,{children:`message_file_id - Message file ID`}),`\n`,_jsx(_components.li,{children:`created_by_role - Creator role`}),`\n`,_jsx(_components.li,{children:`created_user_id - Creator user ID`}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Integrate with Alibaba Cloud Monitor","sidebarTitle":"Alibaba Cloud Monitor","description":"Send traces and metrics from Dify applications to Alibaba Cloud Monitor (ARMS) via OpenTelemetry","href":"/en/3.13.x/use/monitor/integrations/integrate-aliyun"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What is Alibaba Cloud Monitor","slug":"what-is-alibaba-cloud-monitor","depth":2,"children":[]},{"title":"How to Configure Alibaba Cloud Monitor","slug":"how-to-configure-alibaba-cloud-monitor","depth":2,"children":[{"title":"1. Get Alibaba Cloud Endpoint and License Key","slug":"1-get-alibaba-cloud-endpoint-and-license-key","depth":3,"children":[]},{"title":"2. Configure Cloud Monitor in Dify","slug":"2-configure-cloud-monitor-in-dify","depth":3,"children":[]}]},{"title":"View Monitoring Data in Alibaba Cloud Monitor","slug":"view-monitoring-data-in-alibaba-cloud-monitor","depth":2,"children":[{"title":"Method 1: Jump to ARMS Console from Dify Application","slug":"method-1-jump-to-arms-console-from-dify-application","depth":3,"children":[]},{"title":"Method 2: View Directly in ARMS Console","slug":"method-2-view-directly-in-arms-console","depth":3,"children":[]}]},{"title":"Access More Data","slug":"access-more-data","depth":2,"children":[]},{"title":"Monitoring Data List","slug":"monitoring-data-list","depth":2,"children":[{"title":"Workflow/Chatflow Trace Information","slug":"workflow/chatflow-trace-information","depth":3,"children":[]},{"title":"Message Trace Information","slug":"message-trace-information","depth":3,"children":[]},{"title":"Dataset Retrieval Trace Information","slug":"dataset-retrieval-trace-information","depth":3,"children":[]},{"title":"Tool Trace Information","slug":"tool-trace-information","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"dify-enterprise-docs","siteName":"Dify Enterprise Docs","title":"Integrate with Alibaba Cloud Monitor - Dify Enterprise Docs","navMaps":{"firstHrefInVersion":{"3.13.x":{"href":"/en/3.13.x/use/monitor/integrations/integrate-aliyun","matchLevel":0},"3.12.x":{"href":"/en/3.12.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.11.x":{"href":"/en/3.11.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.10.x":{"href":"/en/3.10.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.9.x":{"href":"/en/3.9.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.8.x":{"href":"/en/3.8.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.7.x":{"href":"/en/3.7.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.6.x":{"href":"/en/3.6.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.5.x":{"href":"/en/3.5.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.4.x":{"href":"/en/3.4.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.3.x":{"href":"/en/3.3.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"3.2.x":{"href":"/en/3.2.x/deploy/checklist","matchLevel":4},"3.1.x":{"href":"/en/3.1.x/deploy/checklist","matchLevel":4},"3.0.x":{"href":"/en/3.0.x/deploy/checklist","matchLevel":4},"2.8.x":{"href":"/en/2.8.x/deploy/checklist","matchLevel":4},"2.7.x":{"href":"/en/2.7.x/deploy/checklist","matchLevel":4},"2.6.x":{"href":"/en/2.6.x/deploy/checklist","matchLevel":4},"2.5.x":{"href":"/en/2.5.x/deploy/checklist","matchLevel":4}},"firstHrefInLanguage":{"en":{"href":"/en/3.13.x/use/monitor/integrations/integrate-aliyun","matchLevel":0},"zh":{"href":"/zh/3.13.x/use/monitor/integrations/integrate-aliyun","matchLevel":1},"ja":{"href":"/ja/3.13.x/use/monitor/integrations/integrate-aliyun","matchLevel":1}}},"lastModified":"2026-09-30T04:24:48.203Z","originalFileLocation":"en/3.13.x/use/monitor/integrations/integrate-aliyun.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send traces and metrics from Dify applications to Alibaba Cloud Monitor (ARMS) via OpenTelemetry\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Integrate with Alibaba Cloud Monitor - Dify Enterprise Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send traces and metrics from Dify applications to Alibaba Cloud Monitor (ARMS) via OpenTelemetry\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dify Enterprise Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dify-enterprise-docs.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=Integrate+with+Alibaba+Cloud+Monitor\u0026amp;description=Send+traces+and+metrics+from+Dify+applications+to+Alibaba+Cloud+Monitor+%28ARMS%29+via+OpenTelemetry\u0026amp;theme=e95e546bd9c3a8e3c27c730b\u0026amp;signature=b2fcd2a3cc47fcf11c34cde62ec870ab969895837cb869b39efabecc6d7dd6ea\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Integrate with Alibaba Cloud Monitor - Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send traces and metrics from Dify applications to Alibaba Cloud Monitor (ARMS) via OpenTelemetry\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dify-enterprise-docs.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=Integrate+with+Alibaba+Cloud+Monitor\u0026amp;description=Send+traces+and+metrics+from+Dify+applications+to+Alibaba+Cloud+Monitor+%28ARMS%29+via+OpenTelemetry\u0026amp;theme=e95e546bd9c3a8e3c27c730b\u0026amp;signature=b2fcd2a3cc47fcf11c34cde62ec870ab969895837cb869b39efabecc6d7dd6ea\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0060FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/3.13.x/use/monitor/integrations/integrate-aliyun.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://enterprise-docs.dify.ai/zh/3.13.x/use/monitor/integrations/integrate-aliyun\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://enterprise-docs.dify.ai/ja/3.13.x/use/monitor/integrations/integrate-aliyun\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://enterprise-docs.dify.ai/#organization\",\"name\":\"Dify Enterprise Docs\",\"url\":\"https://enterprise-docs.dify.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://enterprise-docs.dify.ai#website\",\"name\":\"Dify Enterprise Docs\",\"url\":\"https://enterprise-docs.dify.ai\",\"publisher\":{\"@id\":\"https://enterprise-docs.dify.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun#webpage\",\"url\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun\",\"name\":\"Integrate with Alibaba Cloud Monitor\",\"description\":\"Send traces and metrics from Dify applications to Alibaba Cloud Monitor (ARMS) via OpenTelemetry\",\"dateModified\":\"2026-09-30T04:24:48.203Z\",\"isPartOf\":{\"@id\":\"https://enterprise-docs.dify.ai#website\"},\"breadcrumb\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Monitor\",\"item\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/analysis\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integrations\",\"item\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-langsmith\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Integrate with Alibaba Cloud Monitor\",\"item\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun#article\",\"headline\":\"Integrate with Alibaba Cloud Monitor\",\"name\":\"Integrate with Alibaba Cloud Monitor\",\"description\":\"Send traces and metrics from Dify applications to Alibaba Cloud Monitor (ARMS) via OpenTelemetry\",\"url\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun\",\"mainEntityOfPage\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-aliyun#webpage\"},\"dateModified\":\"2026-09-30T04:24:48.203Z\",\"publisher\":{\"@id\":\"https://enterprise-docs.dify.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://enterprise-docs.dify.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dify Enterprise Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dify Enterprise Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/3.13.x/use/monitor/integrations/integrate-aliyun.md","siteName":"Dify Enterprise Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"versions":[{"version":"3.13.x","tag":"LTS","tabs":[{"tab":"Deploy","pages":[{"title":"Deploy","href":"/en/3.13.x/deploy/checklist"}]},{"tab":"Administer","pages":[{"title":"Administer","href":"/en/3.13.x/administer/workspace-management"}]},{"tab":"Use","pages":[{"group":"Orchestrate","icon":"hammer","pages":[{"group":"Workflow \u0026 Chatflow","expanded":false,"pages":[{"title":"Workflow \u0026 Chatflow","sidebarTitle":"Overview","href":"/en/3.13.x/use/build/workflow-chatflow"},{"title":"Orchestration Logic","href":"/en/3.13.x/use/build/orchestrate-node"},{"group":"Nodes","expanded":false,"pages":[{"group":"Start","root":{"title":"Start Node","href":"/en/3.13.x/use/nodes/start"},"pages":[{"title":"User Input","href":"/en/3.13.x/use/nodes/user-input"},{"group":"Trigger","root":{"title":"Trigger","sidebarTitle":"Overview","href":"/en/3.13.x/use/nodes/trigger/overview"},"pages":[{"title":"Schedule Trigger","href":"/en/3.13.x/use/nodes/trigger/schedule-trigger"},{"title":"Integration Trigger","href":"/en/3.13.x/use/nodes/trigger/plugin-trigger"},{"title":"Webhook Trigger","href":"/en/3.13.x/use/nodes/trigger/webhook-trigger"}]}]},{"title":"LLM","href":"/en/3.13.x/use/nodes/llm"},{"title":"Knowledge Retrieval","href":"/en/3.13.x/use/nodes/knowledge-retrieval"},{"title":"Answer","href":"/en/3.13.x/use/nodes/answer"},{"title":"Output","href":"/en/3.13.x/use/nodes/output"},{"title":"Agent","href":"/en/3.13.x/use/nodes/agent"},{"title":"Question Classifier","href":"/en/3.13.x/use/nodes/question-classifier"},{"title":"If-Else","href":"/en/3.13.x/use/nodes/ifelse"},{"group":"Human Input","root":{"title":"Human Input","href":"/en/3.13.x/use/nodes/human-input"},"expanded":false,"pages":[]},{"title":"Iteration","href":"/en/3.13.x/use/nodes/iteration"},{"title":"Loop","href":"/en/3.13.x/use/nodes/loop"},{"title":"Code","href":"/en/3.13.x/use/nodes/code"},{"title":"Template","href":"/en/3.13.x/use/nodes/template"},{"title":"Variable Aggregator","href":"/en/3.13.x/use/nodes/variable-aggregator"},{"title":"Document Extractor","href":"/en/3.13.x/use/nodes/doc-extractor"},{"title":"Variable Assigner","href":"/en/3.13.x/use/nodes/variable-assigner"},{"title":"Parameter Extractor","href":"/en/3.13.x/use/nodes/parameter-extractor"},{"title":"HTTP Request","href":"/en/3.13.x/use/nodes/http-request"},{"title":"List Operator","href":"/en/3.13.x/use/nodes/list-operator"},{"title":"Tool Node","sidebarTitle":"Tool","href":"/en/3.13.x/use/nodes/tools"}]},{"title":"Hotkeys","href":"/en/3.13.x/use/build/shortcut-key"},{"title":"Version Control","href":"/en/3.13.x/use/build/version-control"},{"title":"Snippets","sidebarTitle":"Snippets","href":"/en/3.13.x/use/build/snippet"},{"title":"Collaborate with Teammates","sidebarTitle":"Collaboration","href":"/en/3.13.x/use/build/workflow-collaboration"},{"group":"Debug","expanded":false,"pages":[{"title":"Handle Errors","href":"/en/3.13.x/use/build/predefined-error-handling-logic"},{"title":"Single Node","href":"/en/3.13.x/use/debug/step-run"},{"title":"Variable Inspector","href":"/en/3.13.x/use/debug/variable-inspect"},{"title":"Run History","href":"/en/3.13.x/use/debug/history-and-logs"},{"title":"Error Types","href":"/en/3.13.x/use/debug/error-type"}]}]},{"group":"Agent","tag":"New","expanded":false,"pages":[{"title":"Agent","sidebarTitle":"Overview","href":"/en/3.13.x/use/build/new-agent/overview"},{"title":"Build an Agent","sidebarTitle":"Build","href":"/en/3.13.x/use/build/new-agent/build"}]},{"title":"Skills","sidebarTitle":"Skills","href":"/en/3.13.x/use/build/skills"},{"group":"Basic Apps","expanded":false,"pages":[{"title":"Agent","tag":"Legacy","href":"/en/3.13.x/use/build/agent"},{"title":"Chatbot","sidebarTitle":"Chatbot","href":"/en/3.13.x/use/build/chatbot"},{"title":"Text Generator","sidebarTitle":"Text Generator","href":"/en/3.13.x/use/build/text-generator"}]},{"title":"App Toolkit","href":"/en/3.13.x/use/build/additional-features"},{"title":"Go to Anything","href":"/en/3.13.x/use/build/goto-anything"}]},{"group":"Publish","icon":"paper-plane","expanded":false,"pages":[{"title":"Overview","href":"/en/3.13.x/use/publish/README"},{"group":"Web App","pages":[{"title":"Workflow Web Apps","href":"/en/3.13.x/use/publish/webapp/workflow-webapp"},{"title":"Chat Web Apps","href":"/en/3.13.x/use/publish/webapp/chatflow-webapp"},{"title":"Settings","href":"/en/3.13.x/use/publish/webapp/web-app-settings"},{"title":"Access Control","href":"/en/3.13.x/use/publish/webapp/web-app-access"},{"title":"Embed Your Web App","sidebarTitle":"Embeds","href":"/en/3.13.x/use/publish/webapp/embedding-in-websites"}]},{"title":"MCP Server","href":"/en/3.13.x/use/publish/publish-mcp"},{"title":"Publish Apps to Marketplace","sidebarTitle":"Marketplace","href":"/en/3.13.x/use/publish/publish-to-marketplace"}]},{"group":"Deploy","icon":"rocket","expanded":false,"pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/en/3.13.x/use/deploy/overview"},{"title":"Deploy Apps","href":"/en/3.13.x/use/deploy/deploy-apps"}]},{"group":"Monitor","icon":"chart-line","expanded":false,"pages":[{"title":"Dashboard","href":"/en/3.13.x/use/monitor/analysis"},{"title":"Logs","href":"/en/3.13.x/use/monitor/logs"},{"title":"Annotation System","href":"/en/3.13.x/use/monitor/annotation-reply"},{"group":"Integrations","pages":[{"title":"Integrate with LangSmith","sidebarTitle":"LangSmith","href":"/en/3.13.x/use/monitor/integrations/integrate-langsmith"},{"title":"Integrate with Langfuse","sidebarTitle":"Langfuse","href":"/en/3.13.x/use/monitor/integrations/integrate-langfuse"},{"title":"Integrate with Opik","sidebarTitle":"Opik","href":"/en/3.13.x/use/monitor/integrations/integrate-opik"},{"title":"Integrate with W\u0026B Weave","sidebarTitle":"W\u0026B Weave","href":"/en/3.13.x/use/monitor/integrations/integrate-weave"},{"title":"Integrate with Arize","sidebarTitle":"Arize","href":"/en/3.13.x/use/monitor/integrations/integrate-arize"},{"title":"Integrate with Phoenix","sidebarTitle":"Phoenix","description":null,"href":"/en/3.13.x/use/monitor/integrations/integrate-phoenix"},{"title":"Integrate with Alibaba Cloud Monitor","sidebarTitle":"Alibaba Cloud Monitor","href":"/en/3.13.x/use/monitor/integrations/integrate-aliyun"}]}]},{"group":"Knowledge","icon":"book","expanded":false,"pages":[{"title":"Knowledge","sidebarTitle":"Overview","description":null,"href":"/en/3.13.x/use/knowledge/readme"},{"group":"Create","pages":[{"group":"Ready-to-Use Knowledge Base","pages":[{"title":"Create a Ready-to-Use Knowledge Base","sidebarTitle":"Overview","href":"/en/3.13.x/use/knowledge/create-knowledge/introduction"},{"group":"Import Data","pages":[{"title":"Upload Local Files","href":"/en/3.13.x/use/knowledge/create-knowledge/import-text-data/readme"},{"title":"Sync Data from Notion","href":"/en/3.13.x/use/knowledge/create-knowledge/import-text-data/sync-from-notion"},{"title":"Import Data from Website","href":"/en/3.13.x/use/knowledge/create-knowledge/import-text-data/sync-from-website"}]},{"title":"Configure the Chunk Settings","href":"/en/3.13.x/use/knowledge/create-knowledge/chunking-and-cleaning-text"},{"title":"Specify the Index Method and Retrieval Settings","href":"/en/3.13.x/use/knowledge/create-knowledge/setting-indexing-methods"}]},{"group":"Custom Knowledge Base","pages":[{"title":"Build a Custom Knowledge Base","sidebarTitle":"Overview","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/readme"},{"title":"Step 1: Create Knowledge Pipeline","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/create-knowledge-pipeline"},{"title":"Step 2: Orchestrate Knowledge Pipeline","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration"},{"title":"Step 3: Publish Knowledge Pipeline","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/publish-knowledge-pipeline"},{"title":"Step 4: Upload Files","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/upload-files"},{"title":"Step 5: Manage and Use Knowledge Base","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/manage-knowledge-base"},{"title":"Authorize Data Source","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/authorize-data-source"}]},{"group":"Connect to External Knowledge","pages":[{"title":"Connect to External Knowledge Base","sidebarTitle":"Overview","href":"/en/3.13.x/use/knowledge/connect-external-knowledge-base"},{"title":"External Knowledge API","href":"/en/3.13.x/use/knowledge/external-knowledge-api"}]}]},{"group":"Manage","pages":[{"title":"Manage Knowledge Content","sidebarTitle":"Documents \u0026 Chunks","href":"/en/3.13.x/use/knowledge/manage-knowledge/maintain-knowledge-documents"},{"title":"Manage Document Metadata","sidebarTitle":"Metadata","href":"/en/3.13.x/use/knowledge/metadata"},{"title":"Manage Knowledge Settings","sidebarTitle":"Settings","href":"/en/3.13.x/use/knowledge/manage-knowledge/introduction"}]},{"title":"Test Knowledge Retrieval","sidebarTitle":"Test Retrieval","href":"/en/3.13.x/use/knowledge/test-retrieval"},{"title":"Integrate Knowledge within Apps","sidebarTitle":"Integrate in Apps","href":"/en/3.13.x/use/knowledge/integrate-knowledge-within-application"}]},{"group":"Integrations","icon":"plug","expanded":false,"pages":[{"title":"Integrations","sidebarTitle":"Overview","href":"/en/3.13.x/use/workspace/plugins"},{"title":"Model Providers","href":"/en/3.13.x/use/workspace/model-providers"},{"group":"Dify Tools","root":{"title":"Dify Tools","sidebarTitle":"Tools","href":"/en/3.13.x/use/workspace/tools"},"pages":[{"title":"Forward User Identity to MCP Servers","href":"/en/3.13.x/use/workspace/mcp-token-forwarding"}]},{"group":"Custom Endpoint","pages":[{"title":"Custom Endpoints","sidebarTitle":"Overview","href":"/en/3.13.x/use/workspace/api-extension/api-extension"},{"title":"External Data Tool","href":"/en/3.13.x/use/workspace/api-extension/external-data-tool-api-extension"},{"title":"Sensitive Content Moderation","href":"/en/3.13.x/use/workspace/api-extension/moderation-api-extension"},{"title":"Deploy Custom Endpoints Using Cloudflare Workers","href":"/en/3.13.x/use/workspace/api-extension/cloudflare-worker"}]}]},{"group":"Workspace","icon":"briefcase","expanded":false,"pages":[{"title":"Overview","href":"/en/3.13.x/use/workspace/readme"},{"title":"Manage Apps","href":"/en/3.13.x/use/workspace/app-management"},{"title":"Manage Members","href":"/en/3.13.x/use/workspace/team-members-management"},{"group":"Permissions","root":{"title":"Roles and Permissions","href":"/en/3.13.x/use/workspace/roles-and-permissions"},"expanded":false,"pages":[{"title":"Permission Reference","href":"/en/3.13.x/use/workspace/permission-reference"}]},{"title":"Personal Settings","href":"/en/3.13.x/use/workspace/personal-account-management"}]}]},{"tab":"Developer Resources","menu":[{"item":"Workspace API","pages":[{"title":"Workspace API","href":"/en/3.13.x/develop/api/guides/get-started"}]},{"item":"CLI","pages":[{"title":"CLI","href":"/en/3.13.x/develop/cli/introduction"}]},{"item":"Plugins","pages":[{"title":"Plugins","href":"/en/3.13.x/develop/plugins/getting-started/getting-started-dify-plugin"}]}],"pages":[{"title":"Developer Resources","href":"/en/3.13.x/develop/api/guides/get-started"}]}]},{"version":"3.12.x","pages":[{"title":"3.12.x","href":"/en/3.12.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.11.x","pages":[{"title":"3.11.x","href":"/en/3.11.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.10.x","pages":[{"title":"3.10.x","href":"/en/3.10.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.9.x","tag":"LTS","pages":[{"title":"3.9.x","href":"/en/3.9.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.8.x","pages":[{"title":"3.8.x","href":"/en/3.8.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.7.x","pages":[{"title":"3.7.x","href":"/en/3.7.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.6.x","pages":[{"title":"3.6.x","href":"/en/3.6.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.5.x","pages":[{"title":"3.5.x","href":"/en/3.5.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.4.x","pages":[{"title":"3.4.x","href":"/en/3.4.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.3.x","pages":[{"title":"3.3.x","href":"/en/3.3.x/use/monitor/integrations/integrate-aliyun"}]},{"version":"3.2.x","pages":[{"title":"3.2.x","href":"/en/3.2.x/deploy/checklist"}]},{"version":"3.1.x","pages":[{"title":"3.1.x","href":"/en/3.1.x/deploy/checklist"}]},{"version":"3.0.x","pages":[{"title":"3.0.x","href":"/en/3.0.x/deploy/checklist"}]},{"version":"2.8.x","pages":[{"title":"2.8.x","href":"/en/2.8.x/deploy/checklist"}]},{"version":"2.7.x","pages":[{"title":"2.7.x","href":"/en/2.7.x/deploy/checklist"}]},{"version":"2.6.x","pages":[{"title":"2.6.x","href":"/en/2.6.x/deploy/checklist"}]},{"version":"2.5.x","pages":[{"title":"2.5.x","href":"/en/2.5.x/deploy/checklist"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/3.13.x/use/monitor/integrations/integrate-aliyun"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/3.13.x/use/monitor/integrations/integrate-aliyun"}]}]},"basePath":"","title":"Integrate with Alibaba Cloud Monitor - Dify Enterprise Docs","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-D2acuaLg.js","DynamicMarkdown-Co5nikxh.js","zoom-image-lightbox-BbK2OBGL.js","lightbox-handle-r17bVUz3.js"]}