add Alibaba Cloud monitoring integration doc en (#604)

* add aliyun monitor doc en

Change-Id: I9f3758c13c6694c764ad356a0a5a02de7e9acc3f

* fix title

Change-Id: Ic464ab29ae7db00db4741d3d1f824ab87989223d

* Post-review fixes

* add zh and jp docs

---------

Co-authored-by: Riskey <riskey47@dify.ai>
This commit is contained in:
heyszt
2025-12-12 11:28:19 +08:00
committed by GitHub
parent f5aacb1377
commit 4bab66539c
18 changed files with 1824 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
---
title: Integrate External Ops Tools
title: Integrate with External Ops Tools
sidebarTitle: Overview
---

View File

@@ -0,0 +1,396 @@
---
title: Integrate with Alibaba Cloud Monitor
sidebarTitle: Alibaba Cloud Monitor
---
## 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.
<Info>
Alibaba Cloud Monitor natively supports Python/Golang/Java applications through [LoongSuite](https://github.com/alibaba/loongsuite-python-agent) 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](https://www.alibabacloud.com/help/en/cms/cloudmonitor-1-0/product-overview/what-is-cloudmonitor?spm=a3c0i.63551.2277339270.1.76c7112eeKEvSr).
</Info>
***
## How to Configure Alibaba Cloud Monitor
### 1. Get Alibaba Cloud Endpoint and License Key
1. Log in to the [ARMS console](https://account.alibabacloud.com/login/login.htm?spm=5176.12901015-2.0.0.68d74b84XRatpU), and click **Integration Center** in the left navigation bar.
2. In the **Server-side Applications** area, click the **OpenTelemetry** card.
3. In the **OpenTelemetry** panel that appears, select **gRPC** as the export protocol, and select the connection method and region according to your actual deployment.
![Get Alibaba Cloud access point](https://dify-public-resources.oss-cn-hangzhou.aliyuncs.com/dify-doc/get_endpoint.png)
4. Save the **Public Endpoint** and **Authentication Token (License Key)**.
<Note>
The Endpoint does not include a port number, for example `http://tracing-cn-heyuan.arms.aliyun.com`.
</Note>
### 2. Configure Cloud Monitor in Dify
<Info>
**Prerequisites**: Dify Cloud or Community Edition version must be ≥ v1.6.0
</Info>
1. Log in to the Dify console and navigate to the application you want to monitor.
2. Open **Monitoring** in the left navigation bar.
3. Click **Tracing app performance**, then click **Configure** in the **Cloud Monitor** area.
![Configure Alibaba Cloud Monitor](https://dify-public-resources.oss-cn-hangzhou.aliyuncs.com/dify-doc/config_cms.png)
4. 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.
| Dify Component | Agent | Details |
|----------------|-------|---------|
| Nginx | OpenTelemetry Agent | [Use OpenTelemetry for Nginx Tracing](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) |
| API | LoongSuite-Python Agent | [loongsuite-python-agent](https://github.com/alibaba/loongsuite-python-agent/blob/main/README.md) |
| Sandbox | LoongSuite-Go Agent | [loongsuite-go-agent](https://github.com/alibaba/loongsuite-go-agent/blob/main/README.md) |
| Worker | OpenTelemetry Agent | [Submit Python Application Data via OpenTelemetry](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) |
| Plugin-Daemon | LoongSuite-Go Agent | [loongsuite-go-agent](https://github.com/alibaba/loongsuite-go-agent/blob/main/README.md) |
***
## Monitoring Data List
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
<table>
<thead>
<tr>
<th>Workflow</th>
<th>Alibaba Cloud Monitor Trace</th>
</tr>
</thead>
<tbody>
<tr>
<td>workflow\_id</td>
<td>Unique identifier of the Workflow</td>
</tr>
<tr>
<td>conversation\_id</td>
<td>Conversation ID</td>
</tr>
<tr>
<td>workflow\_run\_id</td>
<td>ID of this run</td>
</tr>
<tr>
<td>tenant\_id</td>
<td>Tenant ID</td>
</tr>
<tr>
<td>elapsed\_time</td>
<td>Duration of this run</td>
</tr>
<tr>
<td>status</td>
<td>Run status</td>
</tr>
<tr>
<td>version</td>
<td>Workflow version</td>
</tr>
<tr>
<td>total\_tokens</td>
<td>Total tokens used in this run</td>
</tr>
<tr>
<td>file\_list</td>
<td>List of processed files</td>
</tr>
<tr>
<td>triggered\_from</td>
<td>Source that triggered this run</td>
</tr>
<tr>
<td>workflow\_run\_inputs</td>
<td>Input data for this run</td>
</tr>
<tr>
<td>workflow\_run\_outputs</td>
<td>Output data for this run</td>
</tr>
<tr>
<td>error</td>
<td>Errors that occurred during this run</td>
</tr>
<tr>
<td>query</td>
<td>Query used during runtime</td>
</tr>
<tr>
<td>workflow\_app\_log\_id</td>
<td>Workflow application log ID</td>
</tr>
<tr>
<td>message\_id</td>
<td>Associated message ID</td>
</tr>
<tr>
<td>start\_time</td>
<td>Run start time</td>
</tr>
<tr>
<td>end\_time</td>
<td>Run end time</td>
</tr>
</tbody>
</table>
**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
<table>
<thead>
<tr>
<th>Message</th>
<th>Alibaba Cloud Monitor Trace</th>
</tr>
</thead>
<tbody>
<tr>
<td>message\_id</td>
<td>Message ID</td>
</tr>
<tr>
<td>message\_data</td>
<td>Message data</td>
</tr>
<tr>
<td>user\_session\_id</td>
<td>User's session\_id</td>
</tr>
<tr>
<td>conversation\_model</td>
<td>Conversation model</td>
</tr>
<tr>
<td>message\_tokens</td>
<td>Number of tokens in the message</td>
</tr>
<tr>
<td>answer\_tokens</td>
<td>Number of tokens in the answer</td>
</tr>
<tr>
<td>total\_tokens</td>
<td>Total tokens in message and answer</td>
</tr>
<tr>
<td>error</td>
<td>Error information</td>
</tr>
<tr>
<td>inputs</td>
<td>Input data</td>
</tr>
<tr>
<td>outputs</td>
<td>Output data</td>
</tr>
<tr>
<td>file\_list</td>
<td>List of processed files</td>
</tr>
<tr>
<td>start\_time</td>
<td>Start time</td>
</tr>
<tr>
<td>end\_time</td>
<td>End time</td>
</tr>
<tr>
<td>message\_file\_data</td>
<td>File data associated with the message</td>
</tr>
<tr>
<td>conversation\_mode</td>
<td>Conversation mode</td>
</tr>
</tbody>
</table>
**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
<table>
<thead>
<tr>
<th>Dataset Retrieval</th>
<th>Alibaba Cloud Monitor Trace</th>
</tr>
</thead>
<tbody>
<tr>
<td>message\_id</td>
<td>Message ID</td>
</tr>
<tr>
<td>inputs</td>
<td>Input content</td>
</tr>
<tr>
<td>documents</td>
<td>Document data</td>
</tr>
<tr>
<td>start\_time</td>
<td>Start time</td>
</tr>
<tr>
<td>end\_time</td>
<td>End time</td>
</tr>
<tr>
<td>message\_data</td>
<td>Message data</td>
</tr>
</tbody>
</table>
**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
<table>
<thead>
<tr>
<th>Tool</th>
<th>Alibaba Cloud Monitor Trace</th>
</tr>
</thead>
<tbody>
<tr>
<td>message\_id</td>
<td>Message ID</td>
</tr>
<tr>
<td>tool\_name</td>
<td>Tool name</td>
</tr>
<tr>
<td>start\_time</td>
<td>Start time</td>
</tr>
<tr>
<td>end\_time</td>
<td>End time</td>
</tr>
<tr>
<td>tool\_inputs</td>
<td>Tool inputs</td>
</tr>
<tr>
<td>tool\_outputs</td>
<td>Tool outputs</td>
</tr>
<tr>
<td>message\_data</td>
<td>Message data</td>
</tr>
<tr>
<td>error</td>
<td>Error information (if any)</td>
</tr>
<tr>
<td>inputs</td>
<td>Input content of the message</td>
</tr>
<tr>
<td>outputs</td>
<td>Answer content of the message</td>
</tr>
<tr>
<td>tool\_config</td>
<td>Tool configuration</td>
</tr>
<tr>
<td>time\_cost</td>
<td>Time cost</td>
</tr>
<tr>
<td>tool\_parameters</td>
<td>Tool parameters</td>
</tr>
<tr>
<td>file\_url</td>
<td>URL of associated file</td>
</tr>
</tbody>
</table>
**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

View File

@@ -1,5 +1,6 @@
---
title: Integrate Langfuse
title: Integrate with Langfuse
sidebarTitle: Langfuse
---
### What is Langfuse

View File

@@ -1,5 +1,6 @@
---
title: Integrate LangSmith
title: Integrate with LangSmith
sidebarTitle: LangSmith
---

View File

@@ -1,5 +1,6 @@
---
title: Integrate Opik
title: Integrate with Opik
sidebarTitle: Opik
---

View File

@@ -1,9 +1,10 @@
---
title: Integrate W&B Weave
title: Integrate with W&B Weave
sidebarTitle: W&B Weave
description: Dify Cloud | Community version ≥ v1.3.1
---
### What is W&b Weave
### What is W&B Weave
Weights & Biases (W&B) Weave is a framework for tracking, experimenting with, evaluating, deploying, and improving LLM-based applications. Designed for flexibility and scalability, Weave supports every stage of your LLM application development workflow.

View File

@@ -1,18 +1,18 @@
---
title: 集成 阿里云 云监控
title: 集成阿里云云监控
---
## 什么是 阿里云云监控
## 什么是阿里云云监控
阿里云提供的全托管免运维可观测平台,一键开启 Dify 应用的监控追踪和评估。
<Info>
阿里云云监控原生支持 Python/Golang/Java 应用通过 [LoongSuite](https://github.com/alibaba/loongsuite-python-agent)
探针 & 开源 OpenTelemetry 探针接入,在一键开启 Dify 大模型应用监控外,还支持通过无侵入探针对 Dify 组件及其上下游依赖的全链路可观测。
更多详情,请参考 [云监控](https://help.aliyun.com/zh/cms/cloudmonitor-2-0/user-guide/model-application)。
更多详情,请参考 [阿里云官方文档](https://help.aliyun.com/zh/cms/cloudmonitor-2-0/user-guide/model-application)。
</Info>
## 如何配置 云监控
## 如何配置云监控
### 1. 获取阿里云 Endpoint 和 License Key
@@ -26,7 +26,7 @@ title: 集成 阿里云 云监控
> **说明**
> Endpoint 不带端口号,例如 `http://tracing-cn-heyuan.arms.aliyuncs.com`。
### 2. 将 云监控 与 Dify 集成
### 2. 将云监控与 Dify 集成
> **📌 前提条件**
> Dify Cloud | 社区版本号需 ≥ v1.6.0
@@ -39,9 +39,7 @@ title: 集成 阿里云 云监控
4. 在弹出的对话框中输入步骤 1 获取的 **License Key** 和 **Endpoint**,并自定义 **App Name**ARMS 控制台显示的应用名称),然后单击 **保存并启用**。
## 在 云监控 中查看监控数据
## 在云监控中查看监控数据
配置完成后Dify 内应用的调试或生产数据可以在 **云监控** 中进行监控。

View File

@@ -0,0 +1,395 @@
---
title: Alibaba Cloud Monitorとの統合
---
## Alibaba Cloud Monitorとは
Alibaba Cloudは、Difyアプリケーションのワンクリック監視、トレース、評価を可能にする、フルマネージドかつメンテナンス不要のオブザーバビリティプラットフォームを提供します。
<Info>
Alibaba Cloud Monitorは、[LoongSuite](https://github.com/alibaba/loongsuite-python-agent)エージェントやオープンソースのOpenTelemetryエージェントを通じて、Python/Golang/Javaアプリケーションをネイティブにサポートします。Dify LLMアプリケーションのワンクリック監視に加え、非侵入型エージェントによるDifyコンポーネントおよびその上下流依存関係のエンドツーエンドの可観測性もサポートします。
詳細は[Cloud Monitorドキュメント](https://www.alibabacloud.com/help/en/cms/cloudmonitor-1-0/product-overview/what-is-cloudmonitor?spm=a3c0i.63551.2277339270.1.76c7112eeKEvSr)をご参照ください。
</Info>
***
## Alibaba Cloud Monitorの設定方法
### 1. Alibaba Cloudのエンドポイントとライセンスキーの取得
1. [ARMSコンソール](https://account.alibabacloud.com/login/login.htm?spm=5176.12901015-2.0.0.68d74b84XRatpU)にログインし、左側のナビゲーションバーで**Integration Center**をクリックします。
2. **Server-side Applications**エリアで**OpenTelemetry**カードをクリックします。
3. 表示された**OpenTelemetry**パネルで、エクスポートプロトコルとして**gRPC**を選択し、実際のデプロイに応じて接続方法とリージョンを選択します。
![Alibaba Cloudアクセスポイントの取得](https://dify-public-resources.oss-cn-hangzhou.aliyuncs.com/dify-doc/get_endpoint.png)
4. **Public Endpoint**と**Authentication Token (License Key)**を保存します。
<Note>
エンドポイントにはポート番号が含まれていません(例: `http://tracing-cn-heyuan.arms.aliyun.com`)。
</Note>
### 2. DifyでCloud Monitorを設定
<Info>
**前提条件**: Dify CloudまたはCommunity Editionのバージョンがv1.6.0以上である必要があります。
</Info>
1. Difyコンソールにログインし、監視したいアプリケーションに移動します。
2. 左側のナビゲーションバーで**Monitoring**を開きます。
3. **Tracing app performance**をクリックし、**Cloud Monitor**エリアで**Configure**をクリックします。
![Alibaba Cloud Monitorの設定](https://dify-public-resources.oss-cn-hangzhou.aliyuncs.com/dify-doc/config_cms.png)
4. 表示されたダイアログで、手順1で取得した**License Key**と**Endpoint**を入力し、**App Name**ARMSコンソールに表示されるアプリケーション名をカスタマイズして**Save & Enable**をクリックします。
***
## Alibaba Cloud Monitorでの監視データの表示
設定後、Difyのアプリケーションからのデバッグまたは本番データはCloud Monitorで監視できます。
### 方法1: DifyアプリケーションからARMSコンソールにジャンプ
Difyコンソールでトレースが有効になっているアプリケーションを選択し、**Tracing Configuration**に移動して、**Cloud Monitor**エリアの**View**をクリックします。
### 方法2: ARMSコンソールで直接表示
ARMSコンソールの**LLM Application Monitoring > Application List**ページで、対応するDifyアプリケーションに移動します。
***
## より多くのデータにアクセス
Cloud Monitorは、Difyクラスターのさまざまなコンポーネントにアクセスしてエンドツーエンドのトレースを実現するマルチランゲージの非侵入型エージェントを提供します。
| Difyコンポーネント | エージェント | 詳細 |
|----------------|-------|---------|
| Nginx | OpenTelemetry Agent | [NginxトレースにOpenTelemetryを使用](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) |
| API | LoongSuite-Python Agent | [loongsuite-python-agent](https://github.com/alibaba/loongsuite-python-agent/blob/main/README.md) |
| Sandbox | LoongSuite-Go Agent | [loongsuite-go-agent](https://github.com/alibaba/loongsuite-go-agent/blob/main/README.md) |
| Worker | OpenTelemetry Agent | [OpenTelemetryを介してPythonアプリケーションデータを送信](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) |
| Plugin-Daemon | LoongSuite-Go Agent | [loongsuite-go-agent](https://github.com/alibaba/loongsuite-go-agent/blob/main/README.md) |
***
## 監視データリスト
Cloud Monitorは、DifyのWorkflow/Chatflow/Chat/Agentアプリケーションからデータを収集することをサポートしており、ワークフローおよびワークフローードの実行詳細、モデル呼び出し、ツール呼び出し、知識取得、さまざまなプロセスードの実行詳細、会話やユーザー情報などのメタデータをカバーしています。
### ワークフロー/Chatflowトレース情報
<table>
<thead>
<tr>
<th>Workflow</th>
<th>Alibaba Cloud Monitor Trace</th>
</tr>
</thead>
<tbody>
<tr>
<td>workflow\_id</td>
<td>ワークフローの一意の識別子</td>
</tr>
<tr>
<td>conversation\_id</td>
<td>会話ID</td>
</tr>
<tr>
<td>workflow\_run\_id</td>
<td>この実行のID</td>
</tr>
<tr>
<td>tenant\_id</td>
<td>テナントID</td>
</tr>
<tr>
<td>elapsed\_time</td>
<td>この実行の所要時間</td>
</tr>
<tr>
<td>status</td>
<td>実行ステータス</td>
</tr>
<tr>
<td>version</td>
<td>ワークフローのバージョン</td>
</tr>
<tr>
<td>total\_tokens</td>
<td>この実行で使用されたトークンの総数</td>
</tr>
<tr>
<td>file\_list</td>
<td>処理されたファイルのリスト</td>
</tr>
<tr>
<td>triggered\_from</td>
<td>この実行をトリガーしたソース</td>
</tr>
<tr>
<td>workflow\_run\_inputs</td>
<td>この実行の入力データ</td>
</tr>
<tr>
<td>workflow\_run\_outputs</td>
<td>この実行の出力データ</td>
</tr>
<tr>
<td>error</td>
<td>この実行中に発生したエラー</td>
</tr>
<tr>
<td>query</td>
<td>実行時に使用されたクエリ</td>
</tr>
<tr>
<td>workflow\_app\_log\_id</td>
<td>ワークフローアプリケーションログID</td>
</tr>
<tr>
<td>message\_id</td>
<td>関連するメッセージID</td>
</tr>
<tr>
<td>start\_time</td>
<td>実行開始時刻</td>
</tr>
<tr>
<td>end\_time</td>
<td>実行終了時刻</td>
</tr>
</tbody>
</table>
**ワークフロートレースメタデータ**
* workflow\_id - ワークフローの一意の識別子
* conversation\_id - 会話ID
* workflow\_run\_id - この実行のID
* tenant\_id - テナントID
* elapsed\_time - この実行の所要時間
* status - 実行ステータス
* version - ワークフローのバージョン
* total\_tokens - この実行で使用されたトークンの総数
* file\_list - 処理されたファイルのリスト
* triggered\_from - トリガーソース
### メッセージトレース情報
<table>
<thead>
<tr>
<th>Message</th>
<th>Alibaba Cloud Monitor Trace</th>
</tr>
</thead>
<tbody>
<tr>
<td>message\_id</td>
<td>メッセージID</td>
</tr>
<tr>
<td>message\_data</td>
<td>メッセージデータ</td>
</tr>
<tr>
<td>user\_session\_id</td>
<td>ユーザーのsession\_id</td>
</tr>
<tr>
<td>conversation\_model</td>
<td>会話モデル</td>
</tr>
<tr>
<td>message\_tokens</td>
<td>メッセージ内のトークン数</td>
</tr>
<tr>
<td>answer\_tokens</td>
<td>回答内のトークン数</td>
</tr>
<tr>
<td>total\_tokens</td>
<td>メッセージと回答のトークンの総数</td>
</tr>
<tr>
<td>error</td>
<td>エラー情報</td>
</tr>
<tr>
<td>inputs</td>
<td>入力データ</td>
</tr>
<tr>
<td>outputs</td>
<td>出力データ</td>
</tr>
<tr>
<td>file\_list</td>
<td>処理されたファイルのリスト</td>
</tr>
<tr>
<td>start\_time</td>
<td>開始時刻</td>
</tr>
<tr>
<td>end\_time</td>
<td>終了時刻</td>
</tr>
<tr>
<td>message\_file\_data</td>
<td>メッセージに関連するファイルデータ</td>
</tr>
<tr>
<td>conversation\_mode</td>
<td>会話モード</td>
</tr>
</tbody>
</table>
**メッセージトレースメタデータ**
* conversation\_id - メッセージが属する会話のID
* ls\_provider - モデルプロバイダー
* ls\_model\_name - モデルID
* status - メッセージステータス
* from\_end\_user\_id - 送信ユーザーのID
* from\_account\_id - 送信アカウントのID
* agent\_based - エージェントベースかどうか
* workflow\_run\_id - ワークフロー実行ID
* from\_source - メッセージソース
* message\_id - メッセージID
### データセット取得トレース情報
<table>
<thead>
<tr>
<th>Dataset Retrieval</th>
<th>Alibaba Cloud Monitor Trace</th>
</tr>
</thead>
<tbody>
<tr>
<td>message\_id</td>
<td>メッセージID</td>
</tr>
<tr>
<td>inputs</td>
<td>入力コンテンツ</td>
</tr>
<tr>
<td>documents</td>
<td>ドキュメントデータ</td>
</tr>
<tr>
<td>start\_time</td>
<td>開始時刻</td>
</tr>
<tr>
<td>end\_time</td>
<td>終了時刻</td>
</tr>
<tr>
<td>message\_data</td>
<td>メッセージデータ</td>
</tr>
</tbody>
</table>
**データセット取得トレースメタデータ**
* message\_id - メッセージID
* ls\_provider - モデルプロバイダー
* ls\_model\_name - モデルID
* status - メッセージステータス
* from\_end\_user\_id - 送信ユーザーのID
* from\_account\_id - 送信アカウントのID
* agent\_based - エージェントベースかどうか
* workflow\_run\_id - ワークフロー実行ID
* from\_source - メッセージソース
### ツールトレース情報
<table>
<thead>
<tr>
<th>Tool</th>
<th>Alibaba Cloud Monitor Trace</th>
</tr>
</thead>
<tbody>
<tr>
<td>message\_id</td>
<td>メッセージID</td>
</tr>
<tr>
<td>tool\_name</td>
<td>ツール名</td>
</tr>
<tr>
<td>start\_time</td>
<td>開始時刻</td>
</tr>
<tr>
<td>end\_time</td>
<td>終了時刻</td>
</tr>
<tr>
<td>tool\_inputs</td>
<td>ツール入力</td>
</tr>
<tr>
<td>tool\_outputs</td>
<td>ツール出力</td>
</tr>
<tr>
<td>message\_data</td>
<td>メッセージデータ</td>
</tr>
<tr>
<td>error</td>
<td>エラー情報(該当する場合)</td>
</tr>
<tr>
<td>inputs</td>
<td>メッセージの入力コンテンツ</td>
</tr>
<tr>
<td>outputs</td>
<td>メッセージの回答コンテンツ</td>
</tr>
<tr>
<td>tool\_config</td>
<td>ツール設定</td>
</tr>
<tr>
<td>time\_cost</td>
<td>コスト時間</td>
</tr>
<tr>
<td>tool\_parameters</td>
<td>ツールパラメータ</td>
</tr>
<tr>
<td>file\_url</td>
<td>関連ファイルのURL</td>
</tr>
</tbody>
</table>
**ツールトレースメタデータ**
* message\_id - メッセージID
* tool\_name - ツール名
* tool\_inputs - ツール入力
* tool\_outputs - ツール出力
* tool\_config - ツール設定
* time\_cost - コスト時間
* error - エラー情報
* tool\_parameters - ツールパラメータ
* message\_file\_id - メッセージファイルID
* created\_by\_role - 作成者の役割
* created\_user\_id - 作成者のユーザーID