NestJS Observability

Community

Enhance NestJS apps with logging and metrics.

Authorngxtm
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the need for robust logging, tracing, and metrics in NestJS applications, ensuring better monitoring, debugging, and operational insight.

Core Features & Use Cases

  • Structured Logging: Implements high-performance JSON logging using nestjs-pino, with mandatory redaction of sensitive fields and context injection.
  • Request Tracing: Ensures all log lines include a reqId for correlation across microservices and downstream systems.
  • Metrics Exposure: Sets up Prometheus metrics endpoints using @willsoto/nestjs-prometheus for key application performance indicators.
  • Health Checks: Integrates Terminus for defining liveness and readiness probes, including database and memory checks.
  • Use Case: Debugging a complex transaction across multiple microservices by tracing a single reqId through all relevant logs, or monitoring application memory usage to prevent crashes.

Quick Start

Configure NestJS to use structured logging with Pino and Prometheus metrics.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: NestJS Observability
Download link: https://github.com/ngxtm/skill-rule/archive/main.zip#nestjs-observability

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.