nestjs-observability
БесплатноБез исполняемых скриптовНе проверенConfigure structured logging with Pino, Prometheus metrics, and health checks for NestJS services. Use when adding JSON logging, request tracing with…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Observability Standards
Priority: P1 (HIGH)
Structured Logging (Pino)
Use nestjs-pino for high-performance, async JSON logging. Node's console.log blocking and unstructured.
Tracing (Correlation)
- Request ID: Every log line must include
reqId.nestjs-pinohandles this viaAsyncLocalStorage. - Propagation: Pass
x-request-idto downstream microservices and database queries for end-to-end tracing.
Metrics
Expose /metrics for Prometheus scraping using @willsoto/nestjs-prometheus.
Health Checks
- Terminus: Implement "Liveness" (I'm alive) vs "Readiness" (I can take traffic).
- DB Check:
TypeOrmHealthIndicator/PrismaHealthIndicator. - Memory Check: Fail readiness if Heap > 300MB to prevent crash loops.
Performance Headers (Dev Only)
X-Response-Duration-Ms,X-DB-Execution-Ms,X-API-Overhead-Ms- Gate behind
ENABLE_PERFORMANCE_BENCHMARKfeature flag; never expose in production.
Anti-Patterns
- No console.log: Use nestjs-pino for async, structured, JSON-formatted logging.
- No missing reqId: Propagate
x-request-idheader to all downstream services and queries. - No perf data in production by default: Gate benchmarking behind
ENABLE_PERFORMANCE_BENCHMARKflag.
Установить nestjs-observability в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nestjs-observability?
Configure structured logging with Pino, Prometheus metrics, and health checks for NestJS services. Use when adding JSON logging, request tracing with correlation IDs, Prometheus metric endpoints, or liveness/readiness health checks.
Как установить скилл nestjs-observability?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nestjs-observability запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic