بنقرة واحدة
instrumentation-planning
Plan what to measure in AI agent systems using tiered approach
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Plan what to measure in AI agent systems using tiered approach
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Trace agent decision-making, tool selection, and reasoning chains
Instrument safety checks, content filters, and guardrails for agent outputs
Strategies for evaluating agents in production - sampling, baselines, and regression detection
Track prompt versions, A/B test variants, and measure prompt performance
Instrument error handling, retries, fallbacks, and failure patterns
Instrument evaluation metrics, quality scores, and feedback loops
| name | instrumentation-planning |
| description | Plan what to measure in AI agent systems using tiered approach |
| triggers | ["what should I measure","planning agent telemetry","observability strategy","what to instrument"] |
| priority | 1 |
Plan agent observability using a tiered, outcome-focused approach.
Every metric and span should answer one of these questions:
Essential observability to ship any agent:
Understand agent execution:
Track costs and ownership:
For multi-agent systems:
Measure agent quality:
Use semantic, hierarchical names:
agent.run # Root agent execution
agent.think # Reasoning step
llm.call # LLM API call
llm.stream # Streaming LLM call
tool.execute # Tool execution
tool.validate # Tool input validation
retrieval.search # RAG retrieval
retrieval.rerank # Reranking step
memory.read # Memory fetch
memory.write # Memory store
handoff.delegate # Agent delegation
handoff.receive # Receiving delegation
human.request # Human approval request
human.response # Human response received
eval.score # Evaluation scoring
Use dot-notation, consistent types:
# Agent context
agent.name # string: "researcher"
agent.type # string: "langgraph"
agent.run_id # string: UUID
# LLM context
llm.model # string: "claude-3-opus"
llm.provider # string: "anthropic"
llm.temperature # float: 0.7
llm.tokens.input # int: 1500
llm.tokens.output # int: 350
llm.tokens.total # int: 1850
llm.cost_usd # float: 0.025
llm.latency_ms # int: 2340
# Tool context
tool.name # string: "web_search"
tool.success # bool: true
tool.error # string: error message
tool.latency_ms # int: 450
# User context
user.id # string: hash or ID
session.id # string: session UUID
For high-volume agents:
Configure sampling at SDK level, not in code.
llm-call-tracing - LLM instrumentation detailstool-call-tracking - Tool execution patternstoken-cost-tracking - Cost calculation methods