计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use nestjs-pino for high-performance, async JSON logging. Node's console.log blocking and unstructured.
reqId. nestjs-pino handles this via AsyncLocalStorage.x-request-id to downstream microservices and database queries for end-to-end tracing.Expose /metrics for Prometheus scraping using @willsoto/nestjs-prometheus.
TypeOrmHealthIndicator / PrismaHealthIndicator.X-Response-Duration-Ms, X-DB-Execution-Ms, X-API-Overhead-MsENABLE_PERFORMANCE_BENCHMARK feature flag; never expose in production.x-request-id header to all downstream services and queries.ENABLE_PERFORMANCE_BENCHMARK flag.