/devops-skills:distributed-tracingfrom devops-skills
Covers following a single request across service boundaries — context propagation, span and attribute design, sampling, and using traces to find where latency accumulates. Use when debugging slow multi-service requests, instrumenting with OpenTelemetry, investigating trace gaps, or deciding sampling strategy.
Ships in devops-skills. 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.
A metric can tell you p99 latency went up. It cannot tell you which of the eleven services a request passed through added the extra 400ms. A trace can — it's the record of one request's actual path through the system, as a tree of timed spans, and it's the only signal built specifically to answer "where did the time go" across a distributed call graph.
That answer is only available if the trace is complete. A trace with a gap doesn't just lose detail about the missing service — it loses the ability to say anything conclusive about where the time went at all, because the missing piece could be where it all happened.
Tracing only works if every hop in that graph agrees to pass the same identifier forward. A trace is only as complete as its weakest propagation link — one service that drops the context breaks the chain for everyone downstream of it.
For a complete OpenTelemetry Collector configuration and sampling pipeline, read
references/otel-collector-config.md.
A trace is stitched together from a shared trace ID and parent span ID passed along with the request — as an HTTP header, a gRPC metadata field, or a message queue attribute.
If any service in the path doesn't read and forward that context, the trace doesn't just lose that service's spans, it loses everything downstream of it too, because there's no ID left to attach them to. This is why third-party clients, message queues, and background job runners are the most common places tracing silently breaks: they weren't built with a context-propagation hook in mind, so someone has to add it explicitly.
Done when: a single request can be traced end to end through every service and queue it touches, with no unexplained gaps.
A span should represent something you'd want to see the duration of on its own — an HTTP call, a database query, a cache lookup, a queue publish — not every function call in the codebase.
Over-instrumenting turns a trace into noise that's as hard to read as no trace at all; under-instrumenting leaves the actual slow step invisible inside one giant span. Attach attributes (not new spans) for detail that doesn't need its own duration: query text, cache hit/miss, retry count, the same status-code and endpoint dimensions used in metrics.
Done when: every span in a trace corresponds to a real unit of work someone would want timed on its own, and the slow step is visible as its own span, not buried inside a bigger one.
Tracing every request at full detail is rarely affordable once traffic is real, but a flat 1% sample rate throws away exactly the traces most worth having — the slow ones and the failed ones are rare by definition, so a flat sample mostly captures boring, fast, successful requests. Tail-based sampling (decide whether to keep a trace after it finishes, based on whether it was slow or errored) keeps the interesting population at low cost; head-based sampling (decide before the request starts) is cheaper to run but structurally can't make that distinction.
Done when: slow and errored requests are captured at a much higher rate than routine successful ones, by design, not by luck.
The fastest way to find where latency actually accumulated is to look for the span with the largest gap between its start and its children's start, or the largest span with no children of its own — that's either unaccounted-for time (queueing, connection setup, GC) or a leaf operation that's genuinely slow. A trace waterfall view makes this visual: a request that looks slow "in service B" often turns out to be entirely spent waiting for a lock or a connection pool inside B, not doing B's actual work, and only the span breakdown reveals that.
Done when: for a given slow trace, you can name the specific span responsible for the majority of the added latency, not just the service.
A trace tells you where the time went; it rarely tells you why a specific query was slow or what the error message actually was.
log-management for how that field should be structured.Done when: from any slow or errored trace, you can jump directly to the matching logs for that same request.
Trace storage grows with span count × attribute size × retention, and it's tempting to solve rising cost by trimming attributes or shortening retention uniformly. That degrades the traces you kept without addressing why you're keeping so many boring ones.
Revisit the sampling policy from step 3 first — a cost problem in tracing is almost always a sampling problem wearing a storage bill as a disguise.
Done when: a tracing cost increase is diagnosed by checking sampling rate and cardinality of attributes before touching retention.
State which services have propagation wired up (and which don't yet), the sampling strategy and rate for errored/slow versus routine traces, and whether trace IDs are correlated into logs.
Name the honest gap — usually one or two services or async boundaries where context propagation silently drops — rather than claiming end-to-end tracing coverage that hasn't actually been verified hop by hop.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`./artifact-managementVersions, stores, and promotes build outputs — registries, immutability, build-once-promote-many, retention and garbage collection, and provenance metadata. Use this whenever the user sets up an artifact or container registry, asks how to promote a build between environments without rebuilding, needs a retention or cleanup policy, or wants to trace where an artifact came from. For an image's contents and size use `image-optimization`; for vulnerability scanning use `image-scanning`./autoscalingCovers scaling Kubernetes workloads and nodes to demand — HPA on the right metric, VPA, cluster autoscaler, custom/external metrics, avoiding thrash with stabilization windows, and requests as the foundation underneath it all. Use this whenever the user is configuring an HPA, deciding between HPA and VPA, debugging autoscaling that flaps, or sizing a cluster autoscaler. For the requests/limits autoscaling depends on use `kubernetes-operations`; for cost tradeoffs use `cost-optimization`./backup-and-restoreDefines the discipline of building backups you can actually restore under pressure — RPO-driven frequency, restores rehearsed on a schedule, offsite immutable copies, encryption, and treating a backup that has never been restored as equivalent to no backup at all. Use this whenever the user sets up a backup job, chooses a retention policy, argues about RPO or RTO, asks whether current backups are enough, or plans for ransomware or accidental deletion. For the wider recovery plan use `disaster-recovery`, and for stateful platform durability use `stateful-workloads`.npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills