Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Observability Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ansh44233-observability-setup)
---
description: Add logs, metrics and traces that make failures diagnosable
profile: full
tags: observability, logging, metrics, tracing
---
# Observability Setup
## Logs
- Structured JSON logs with level, timestamp, service, and a request or trace id on every line.
- Log events and decisions, not data dumps. Never log secrets, tokens, passwords or full PII. Redact at the logger.
- One error log per failure, at the boundary that handles it, with the cause chain.
## Metrics
- The four golden signals per service: request rate, error rate, latency (p50/p95/p99 histograms, not averages) and saturation.
- Keep label cardinality bounded: no user ids, emails or raw URLs as labels.
## Traces
- OpenTelemetry SDK with context propagation across HTTP, queues and background jobs. Use auto-instrumentation first, then manual spans around expensive work.
- Sample deliberately (head sampling plus always keeping errors).
## Alerts
- Alert on SLO burn rate and user-visible symptoms, not on every cause. Every alert links a runbook.
## Verify
Trigger a known failing request locally and confirm you can follow it from the log line (via trace id) to the trace and to the error metric moving.