observability-setup

Implement OpenTelemetry tracing, Prometheus metrics, and structured logging in Node.js applications.

5|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/patricio0312rev/skillset --skill observability-setup-patricio0312rev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability-setup
Source: https://github.com/patricio0312rev/skillset/tree/main/templates/performance/observability-setup
Command: npx skills add https://github.com/patricio0312rev/skillset --skill observability-setup-patricio0312rev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Centralize and demystify application behavior by providing end-to-end observability through traces, metrics, and logs, enabling faster debugging and performance optimization.

Core Features & Use Cases

  • OpenTelemetry-based tracing across HTTP, Express, and database interactions to correlate requests.
  • Prometheus-compatible metrics with a ready-to-ship metrics endpoint and dashboards.
  • Structured logging for consistent, searchable event data.
  • Sample dashboards and alert candidates to enable rapid incident response.
  • Quick, practical integration guidance for minimal code changes.

Quick Start

Install the observability setup into your project and integrate the provided tracing, metrics, and logging templates to bootstrap visibility.

Frequently Asked Questions about observability-setup

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

FAQPage Schema
How do I set up end-to-end observability in a Node.js application?

End-to-end observability in a Node.js application requires OpenTelemetry libraries for tracing HTTP and Express routes, Prometheus-compatible metrics, and a structured logging library to correlate requests and monitor runtime performance.

Can I instrument Prisma database interactions with OpenTelemetry tracing?

Yes, OpenTelemetry tracing supports instrumentation for Prisma database interactions alongside HTTP and Express routes, allowing you to correlate database queries with incoming requests for comprehensive issue diagnosis.

What's the best way to expose Prometheus-compatible metrics in Node.js?

Exposing Prometheus-compatible metrics in Node.js is best achieved by integrating a metrics endpoint directly within your application, providing ready-to-ship data for performance monitoring and dashboard visualization.

Does this observability setup support structured logging for faster debugging?

Yes, the observability setup supports structured logging to provide consistent, searchable event data, which centralizes application behavior and enables faster debugging and performance optimization.

How do I correlate traces and metrics to diagnose HTTP performance issues?

You correlate traces and metrics by implementing OpenTelemetry-based tracing across HTTP interactions and exporting Prometheus-compatible metrics, enabling you to pinpoint latency bottlenecks and diagnose runtime performance issues effectively.