observability-monitoring

Instrument Node.js and TypeScript services with OpenTelemetry, Prometheus metrics, and structured logs.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/AndreaCadonna/sbobuz-web-game-app --skill observability-monitoring-andreacadonna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability-monitoring
Source: https://github.com/AndreaCadonna/sbobuz-web-game-app/tree/main/skills/observability-monitoring
Command: npx skills add https://github.com/AndreaCadonna/sbobuz-web-game-app --skill observability-monitoring-andreacadonna

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Production-ready guidance to instrument Node.js/TypeScript services so teams can reliably observe, debug, and operate systems using traces, metrics, and logs unified through OpenTelemetry and complementary tooling.

Core Features & Use Cases

  • OpenTelemetry Initialization: Ensure SDK starts before other imports and configure OTLP exporters for traces and metrics.
  • Distributed Tracing: Auto-instrument HTTP, Express, PostgreSQL, Redis, and Socket.IO and add custom spans for business logic to correlate performance and errors.
  • Metrics Instrumentation: Define counters, histograms, and gauges with naming conventions, label usage, and recording patterns for system and business KPIs.
  • Structured Logging with Trace Context: Use Pino to inject traceId and spanId into JSON logs to jump from logs to Jaeger traces and Grafana Loki entries.
  • Alerting & Dashboards: Provide Prometheus alert rule patterns for critical and warning signals, sampling strategies per environment, and dashboard layouts for system and game activity monitoring.
  • Use Case: When an alert fires for high error rate, trace a sampled request across services, inspect spans for slow operations, and read correlated logs to identify and fix the root cause.

Quick Start

Initialize the OpenTelemetry Node SDK before importing application modules and configure OTLP exporters and auto-instrumentations so traces, metrics, and logs flow to your telemetry backend.

Frequently Asked Questions about observability-monitoring

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

FAQPage Schema
How do I set up OpenTelemetry in Node.js to export traces and metrics?

Initialize the OpenTelemetry Node SDK before importing application modules and configure OTLP exporters to send traces and metrics to your telemetry backend.

How do I inject traceId and spanId into Pino structured logs for Node.js?

Use Pino structured logging to inject traceId and spanId into JSON log outputs, allowing you to jump directly from log entries to correlated Jaeger traces and Grafana Loki dashboards.

Can I auto-instrument Express, PostgreSQL, and Redis with OpenTelemetry in TypeScript?

Yes, you can auto-instrument HTTP, Express, PostgreSQL, Redis, and Socket.IO in TypeScript applications by configuring the OpenTelemetry SDK with the appropriate auto-instrumentation libraries.

What's the best way to define Prometheus metrics and alert rules for Node.js?

Define Prometheus counters, histograms, and gauges using consistent naming conventions and label usage, then apply predefined Prometheus alert rule patterns for critical and warning signals.

How does distributed tracing help investigate high error rate alerts in Node.js?

When a Prometheus alert fires, distributed tracing lets you trace a sampled request across services, inspect spans for slow operations, and read correlated Pino logs to identify and fix the root cause.