⚡AgentSkills
☁️ DevOps & Cloud · Observability

Adopt structured logging that answers questions

JSON logs with trace correlation and disciplined fields you can actually query at 3am.

foundation~25 minDevOps EngineersSREsCloud Architects

Steps

  1. 1Log JSON with timestamp, level, service, route, request_id, user_id
  2. 2Propagate trace IDs across services and into log lines
  3. 3Reserve ERROR for things needing action; INFO is default heartbeat
  4. 4Never log secrets or PII; enforce with lint rules and sampling reviews
  5. 5Sample high-volume debug logs; keep 100% of errors
  6. 6Practice one query drill: 'find all errors for this user yesterday'

Common Pitfalls

  • ▲String-interpolated logs unsearchable in aggregators
  • ▲Stack traces swallowed into single-line messages

Commands

Install with skills CLI
$ npx skills add aniruddhaadak80/skills --skill observability-structured-logging
Install globally
$ npx skills add aniruddhaadak80/skills --skill observability-structured-logging -g

Tags

#logging#debugging#devops-cloud#observability

Related skills

Latency, traffic, errors, saturation per service with SLO thresholds that map to user pain.

☁️ DevOps & Cloud·~35m