observability-and-instrumentation

Implement structured logging, metrics, distributed tracing, and alerting with OpenTelemetry.

Updated May 25, 2026
One-click install
npx skills add https://github.com/huuhiep0303/s-tools --skill observability-and-instrumentation-huuhiep0303
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability-and-instrumentation
Source: https://github.com/huuhiep0303/s-tools/tree/main/.agents/skills/observability-and-instrumentation
Command: npx skills add https://github.com/huuhiep0303/s-tools --skill observability-and-instrumentation-huuhiep0303

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @opentelemetry/sdk-node, @opentelemetry/auto-instrumentations-node, prom-client, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining visibility and diagnosability in production code, enabling quick resolution of issues and ensuring feature reliability.

Core Features & Use Cases

  • Comprehensive Logging: Implement structured logging for precise event tracking.
  • Metrics Collection: Instrument code to collect metrics for performance and health monitoring.
  • Distributed Tracing: Enable end-to-end request tracing across services.
  • Alerting: Set up alerting based on symptoms users feel, not on causes.
  • Use Case: For a web application, this Skill helps monitor response times, detect errors, and trigger alerts when the system is under stress.

Quick Start

Apply the observability-and-instrumentation skill to your application to automatically add logging, metrics, and tracing.

Frequently Asked Questions about observability-and-instrumentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement distributed tracing and structured logging in a Node.js application?

To implement distributed tracing and structured logging, you need to instrument your code with the OpenTelemetry SDK and compatible libraries. This enables precise event tracking and end-to-end request tracing across services for production monitoring.

What is the best way to collect metrics for production health monitoring?

The best way to collect metrics for production health monitoring is to instrument your code using a metrics library like prom-client. This allows you to track performance data and system health continuously.

Does OpenTelemetry SDK support auto-instrumentation for Node.js microservices?

Yes, the OpenTelemetry SDK supports auto-instrumentation for Node.js microservices. By utilizing the auto-instrumentations-node package, it automatically captures distributed traces and metrics without requiring manual code changes.

How do I set up alerting based on user-experienced symptoms instead of system causes?

To set up alerting based on user-experienced symptoms, you configure alerts triggered by metric thresholds derived from user-facing interactions. This ensures your incident response focuses on actual feature reliability rather than internal system noise.

Can I use prom-client with OpenTelemetry for metrics collection?

Yes, you can use prom-client alongside OpenTelemetry for metrics collection. This combination allows you to gather comprehensive performance metrics while maintaining structured logging and distributed tracing capabilities.

Why is observability important for diagnosing production code issues?

Observability is important for diagnosing production code issues because it provides visibility through structured logging, metrics, and tracing. This comprehensive monitoring enables quick resolution of errors and ensures feature reliability under stress.