observability-and-instrumentation
Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.
Author
Category
Development ToolsInstall
Hot:4
Download and extract to your skills directory
Copy command and send to AI Agent for auto-install:
Download and install this skill https://openskills.cc/api/download?slug=addyosmani-skills-observability-and-instrumentation&locale=en&source=copy
Observability and Code Instrumentation
Skill Overview
The observability and code instrumentation skill helps developers add logging, metrics, tracing, and alerting capabilities to production code, making system behavior visible and diagnosable from the outside. If a feature goes live without telemetry data, the first bug report from a user becomes an archaeological excavation rather than a simple query.
Applicable Scenarios
Core Capabilities
Common Questions
When should monitoring be added to code?
Monitoring should be added while writing the feature code, not after the feature is “complete.” Monitoring is part of the feature, just like testing. If a feature goes live without telemetry, you will be unable to determine what happened during the first production incident. Adding monitoring then will cost far more than implementing it correctly during development.
How can problems be located quickly during a production incident?
First, ensure that every request has a Correlation ID propagated through all logs, traces, and cross-service calls. Then follow the complete path of an individual request in the tracing UI and examine the time spent at each hop. At the same time, query event fields in structured logs (such as
payment_failed and errorCode) and the p95/p99 latency of RED metrics to determine whether the issue is caused by business logic, a third-party timeout, or resource saturation. Without this telemetry data, troubleshooting is reduced to guesswork and repeated trial-and-error changes.Why can too many alerts cause a team to become desensitized?
Because alerts based on internal system causes—such as CPU utilization, memory usage, or restart counts—rather than user symptoms may trigger frequently while the system is operating normally, while genuine user-facing failures go undetected. Alert fatigue causes operations personnel to habitually ignore all alerts. The correct approach is to alert only on user-perceivable symptoms, such as error rates, latency, and queue backlogs, and ensure that every alert is actionable. If the default response is “Ignore it; it will self-heal,” that alert should be removed.