トレース¶
On the Tracing tab, you can inspect traces from a custom or external model deployment, including text generation, agentic workflow, VDB, and MCP deployments. Each trace includes a combined span list and timeline that shows the order and duration of actions carried out by the model or agent. Deployment tracing uses the same interface as application tracing.
To access tracing, select a deployment from the Deployments inventory and click the Tracing tab.
トレースは、モデルまたはエージェントのワークフローに対するリクエストがたどった経路を表します。 DataRobotでは、トレースにOpenTelemetryフレームワークを使用しています。 トレースは、起点から解決まで、リクエストのエンドツーエンドの経路全体を追跡します。 各トレースには、ルートスパンから始まる1つ以上のスパンが含まれます。 ルートスパンはリクエストの経路全体を表し、プロセスの各ステップの子スパンが含まれます。 ルート(または親)スパンと各子スパンは、同じトレースIDを共有します。
アクセスと保持
Tracing is available for custom applications, custom and external model deployments, and Workloads. Applications, deployments, and Workloads share the same tracing interface.
保持期間は、システム管理者が組織レベルで設定し、その組織内のすべてのユーザーに適用されます。 ポリシーが明示的に設定されていない場合、トライアル版利用の組織には14日間のポリシーが、有料版利用の組織には30日間のポリシーが適用されます。 管理者は、シグナルタイプ(トレース、ログ、メトリクス)ごとに、保持期間を14、30、60、90、180、または360日に設定できます。
組織の保持期間設定を確認または変更するには、OTelの保持期間の設定を参照してください。
Traces appear in a list by Root span name. Each entry shows the status of the trace and the timestamp. Select a trace to open the detail pane, which shows high-level metadata for the request alongside a combined span list and timeline.
Depending on the request, the list and detail pane can include the following fields:
| フィールド | 説明 |
|---|---|
| ルートスパン名 | The name of the root span for the trace. |
| タイムスタンプ | The date and time of the trace. |
| ステータス | The overall status of the trace, including all spans (for example, Success). The status is Error if any dependent task fails. |
| トレースID | トレースの一意の識別子。 |
| ユーザーID | The user associated with the request, when available. |
| 待ち時間 | The time it took for the trace to complete. This value is equal to the duration of the root span and includes all actions represented by child spans. |
| トークン | Token usage for the trace. |
| スパン | トレースに含まれる完了したスパン(アクション)の数。 |
| エラー | The number of spans in the trace that recorded an error. |
| コスト | コストデータが指定されている場合は、トレースの総コスト。 |
| プロンプト | トレースに関連するユーザープロンプト。 |
| 補完 | トレースのプロンプトに関連付けられているエージェントまたはモデルの回答(補完)。 |
| ツール | トレースで表されたリクエスト中に呼び出されるツールまたはツール群。 |
Search and filter traces¶
Use the search row above the trace list to locate traces.
| フィルター | 説明 |
|---|---|
| Last timestamp | Limit traces by the time of the most recent activity in the trace. |
| ステータス | Filter traces by Success or Alert status. |
| タイプ | Filter traces by type, including generation type, to distinguish operational spans from generation-specific spans. |
Review spans¶
Select a trace to review its spans. The span list and timeline appear together: each row shows the span name, duration, and token usage, and a timeline chart shows when the span ran relative to the rest of the trace. Expand a parent span to show its child spans. Restricted span appears when you do not have access to the deployment or service associated with the span.
In the span view, filter spans by duration, tokens, name, or status code, or isolate identical spans.
When you select a span, high-level metadata, logs, input, output, and remaining metadata are available on the same page. Formatted text in a span appears alongside attributes. Click the span service or model name to access the deployment or resource (if you have access).
When you expand a span, logs appear with the span attributes, input, and output. The results shown are a subset of the full deployment logs.
トレーステーブルのOTel属性¶
コスト、プロンプト、補完、およびツールについては、DataRobotはトレースに属するすべてのスパンにわたる特定のスパン属性を読み取ります。 Other fields (such as Timestamp, Latency, and Tokens) come from trace and span metadata rather than these attributes.
| 列 | OpenTelemetryのマッピング |
|---|---|
| コスト | トレース内のスパンにある datarobot.moderation.cost属性の数値を合計します(その属性が存在する場合)。 |
| プロンプト | gen_ai.prompt属性を使用します。 複数のスパンにgen_ai.promptが含まれている場合、トレース順で最初に検出された値が表示されます。 |
| 補完 | gen_ai.completion属性を使用します。 複数のスパンにgen_ai.completionが含まれている場合、トレース順で最後に検出された値が表示されます。 |
| ツール | トレース内のスパンで検出されたtool_name属性の一意の値をすべて収集し、それらのツール名を列に一覧表示します。 |
属性キーは完全に一致する必要があります(gen_ai内のアンダースコアも含みます)。 genai.promptやGenAI.promptといった名前は、プロンプトおよび補完列では読み込まれません。
自動計装(DataRobotのエージェントテンプレートを含む)では、多くの場合、gen_ai.prompt、gen_ai.completion、そして場合によってはtool_nameが設定されます。 カスタムモデルや外部モデルの場合、フレームワークが異なります。ツールが実行されても(たとえば、一部のLangGraphコールバックフロー)、実行時にtool_nameが出力されない場合があります。 その場合、プロンプトと補完には値を設定できますが、ツールについては、ツール内で実行されるスパンにtool_nameが設定されるまでは空のままになります。トレースの実装を参照してください。

