講座 › 分野3 統合
3.4 計装とモニタリングの不足
配点 2.4%Instrumentation and Monitoring Gaps
大規模なエージェント構成で、障害が検出されなかった理由を、計装の抜けに見つけ、それを拾えた監視の方法を選ぶ。
未読
見る対象:呼び出し、ツール、セッション 読了

トレースで、Messages APIの呼び出し、ツールの利用、Managed Agentsのセッションを追えます。SDKとClaude Codeは、モデルへの各リクエストとツールの実行に、スパンを付け、トークンと費用の指標、プロンプトとツールの結果の構造化ログを出します。
出典:OpenTelemetry tracing for the Claude API
The Claude API and the SDK can trace your Messages API requests, tool uses, and Managed Agents sessions withhttps://platform.claude.com/docs/en/manage-claude/opentelemetry.md(取得 2026-11-23)
出典:Observability with OpenTelemetry (SDK)
records spans around each model request and tool execution, emits metrics for token and cost counters, and emits structured log events for prompts and tool results.https://code.claude.com/docs/en/agent-sdk/observability.md(取得 2026-11-23)
出典:Monitoring (OpenTelemetry)
Claude Code exports metrics as time series data via the standard metrics protocol, events via the logs/events protocol, and optionallyhttps://code.claude.com/docs/en/monitoring-usage.md(取得 2026-11-23)
利用量と費用を、セッション単位で見る 読了

Managed Agentsは、セッションごとの利用量の合計と、一覧での状態、トークン、費用で、予想外の消費を見つけられます。大規模な構成では、1件ごとの確認ではなく、集計して見る仕組みが要ります。
出典:Inspect sessions and track usage
Use the session’s `usage` (csharp, go: `Usage`) totals to see what that work consumed.https://platform.claude.com/docs/en/managed-agents/session-observabili…(取得 2026-11-23)
出典:Inspect sessions and track usage
The list shows every session in the workspace with its status, agent, token usage, cost, creator, and creation time.https://platform.claude.com/docs/en/managed-agents/session-observabili…(取得 2026-11-23)
見つからなかった障害の型と、拾う指標 読了

キャッシュが効かない障害は、キャッシュの作成と読み出しのトークンの項目を監視していれば、気づけます。状態を変える多ターンの処理は、最終的な状態を確かめる監視が成り立ちます。調査には、応答の識別子を残すと、原因をたどれます。必要なら、別のレビューが全記録を読む仕組みも置けます。
出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Analyzing the instrumentation gap in a scaled agentic architecture where a described failure went undetected, and selecting the monitoring strategy that would have surfaced it.https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)
出典:Prompt caching
if both `cache_creation_input_tokens` and `cache_read_input_tokens` are 0, the prompt was not cachedhttps://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)
出典:How we built our multi-agent research system
We found success focusing on end-state evaluation rather than turn-by-turn analysis.https://www.anthropic.com/research/multi-agent-research-system(取得 2026-11-23)
出典:Claude API errors
The response also includes a `request_id` field for easier tracking and debugging.https://platform.claude.com/docs/en/api/errors.md(取得 2026-11-23)
出典:Review and monitor agent sessions
Optionally have an offline reviewer read every transcripthttps://platform.claude.com/docs/en/managed-agents/secure-deployment-m…(取得 2026-11-23)
試験のポイント
- 呼び出し、ツール、セッションを、スパンとログで追えるようにする。
出典:OpenTelemetry tracing for the Claude API
The Claude API and the SDK can trace your Messages API requests, tool uses, and Managed Agents sessions with
https://platform.claude.com/docs/en/manage-claude/opentelemetry.md(取得 2026-11-23) - キャッシュの作成と読み出しのトークンを監視すると、効かない障害に気づける。
出典:Prompt caching
if both `cache_creation_input_tokens` and `cache_read_input_tokens` are 0, the prompt was not cached
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23) - 応答の識別子を記録すると、障害をたどれる。
出典:Claude API errors
The response also includes a `request_id` field for easier tracking and debugging.
https://platform.claude.com/docs/en/api/errors.md(取得 2026-11-23)