Common observability

From HoangNguyen0403/agent-skills-standard · View interactive version

Common observability is an AI agent skill from the GitHub repository HoangNguyen0403/agent-skills-standard. Enforce structured JSON logging, OpenTelemetry distributed tracing, and RED metrics across backend services. Use when adding request correlation, setting up tracing spans, defining SLO burn-rate alerts, or instrumenting middleware.

How to use this skill

Skill file

Common Observability Standards

**Priority: P1 (HIGH)**

Logging & Tracing

See implementation examples for structured logger setup with Pino.

Metrics

Instrumentation Workflow

  1. Define the operation and route-normalized span name before adding code.
  2. Propagate request/trace context across every async or service boundary.
  3. Log one structured event with correlation fields; redact secrets and request bodies.
  4. Add RED metrics with route-safe labels, then define an SLO and burn-rate alert.
  5. Exercise a success and failure path; confirm spans close and IDs join logs to traces.

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.