Overview
Load this skill when instrumenting applications, setting up alerting, defining SLOs, or debugging production issues. The three pillars of observability — logs, metrics, traces — work together to provide full system visibility.
Key Patterns
Structured Logging
- JSON format — Every log entry is a structured JSON object with timestamp, level, message, and context fields
- Correlation IDs — Propagate a request ID across all services for end-to-end tracing
- Log levels — DEBUG for development, INFO for normal operations, WARN for recoverable issues, ERROR for failures requiring attention
- Context enrichment — Attach user ID, request path, duration, and service version to every log line
- Sensitive data — Never log passwords, tokens, PII, or credit card numbers; mask or omit them
Metrics (Prometheus / Grafana)