/observability-instrumentation:observability-instrumentationfrom observability-instrumentation
Adds and reviews production telemetry in application code (structured logs, metrics, OpenTelemetry traces, profiles, alerts) plus SLIs, SLOs and burn-rate alerts. Use when instrumenting a service or feature, adding spans or metrics, correlating logs with traces, choosing metric labels, or defining alerts or SLOs.
Ships in observability-instrumentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Observability is the ability to explain what a running system is doing from its outputs. Instrument a feature while writing it, because adding signals after an incident means the data you need is already gone. Checked against OpenTelemetry docs, Prometheus docs, the Google SRE workbook and the structlog docs (see the reference files for specifics).
Not for writing PromQL or Prometheus config (the promql skill), Grafana dashboards (grafana-dashboards), incident write-ups (postmortem), or Sentry SDK setup (sentry-sdk, if installed).
| Signal | Answers | Typical tool |
|---|---|---|
| Logs | What happened in this one event? | Structured JSON logs |
| Metrics | How much, how fast, how often? | Prometheus client or OTel metrics |
| Traces | Where did this request spend its time? | OpenTelemetry spans |
| Profiles | Why is this CPU or memory hot? | pprof, py-spy, continuous profilers |
| Alerts | Who must act now? | Alert rules on metrics or SLO burn |
Pick the cheapest signal that answers the question. Metrics detect, traces localize, logs explain, and profiles find the code line.
trace_id and span_id on every log line, so a log leads to its trace. When several entry points (scheduler, replay endpoint, CLI) write to one log, also stamp the entry point where the run starts and propagate it with the ID.histogram_quantile().for: duration and a runbook link.references/tracing.md._total suffix on counters.trace_id appear in logs; context propagates to downstream calls.references/logging.md. Read when adding or reviewing structured logging, correlation IDs (including Python structlog contextvars), or log/trace correlation.references/metrics.md. Read when declaring metrics, choosing instrument types, or fixing cardinality.references/tracing.md. Read when adding spans, propagation, sampling, or error recording.references/alerting.md. Read when writing alert rules or choosing what to page on.references/slo.md. Read when defining SLIs, SLOs, error budgets, or burn-rate alerts.references/profiling.md. Read when enabling pprof or continuous profiling.For Sentry error tracking setup, use the sentry-sdk skill if it is installed. This skill covers the OpenTelemetry and Prometheus path.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin observability-instrumentation