Back to list
abhishekmmgn

agent-observability

by abhishekmmgn

agent skills

0🍴 0📅 Jan 20, 2026

SKILL.md


name: agent-observability description: strategies for agent observability (logging, tracing, metrics). Use this to instrument agents for debugging, performance tracking, and quality assurance.

Agent Observability Strategies

Goal

Move beyond simple monitoring ("Is it running?") to deep observability ("How is it thinking?"), enabling the diagnosis of complex failures in non-deterministic systems.

The Three Pillars of Observability

1. Structured Logging (The Diary)

  • Definition: Immutable, timestamped records of discrete events.
  • Best Practice: Use structured JSON logs to capture the full context: prompt/response pairs, intermediate reasoning (Chain of Thought), and tool inputs/outputs.
  • Pattern: Record the intent before an action and the outcome after to distinguish between decision failures and execution failures.

2. Distributed Tracing (The Narrative)

  • Definition: A visual "yarn" connecting individual log entries (spans) into a single end-to-end task execution.
  • Usage: Essential for root cause analysis. It reveals if a bad final answer was caused by a retrieval failure (RAG), a tool error, or an LLM hallucination.
  • Standard: Use OpenTelemetry to link spans across services.

3. Metrics (The Scorecard)

Aggregated data points for tracking health over time. Separate these into two dashboards:

System Metrics (Operational Health)

  • Audience: SREs / DevOps.
  • Key Metrics: P99 Latency, Error Rate (traces with error=true), Token Consumption, and API Cost per Run.

Quality Metrics (Decision Health)

  • Audience: Product / Data Science.
  • Key Metrics:
    • Trajectory Adherence: Did the agent follow the ideal path?
    • Hallucination Rate: Frequency of ungrounded statements.
    • Task Completion Rate: Percentage of traces reaching a "success" state.

Operational Best Practices

  • Dynamic Sampling: To save costs, log 100% of errors but only sample 10% of successful traces in production.
  • PII Redaction: Integrate PII scrubbing directly into the logging pipeline to sanitize user inputs before storage.

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon