What problem does it solve?
Debugging microservices in production requires robust logging, metrics, and health checks to quickly identify and resolve issues. This Skill provides patterns for comprehensive observability, helping you understand system behavior and react swiftly to problems.
Core Features & Use Cases
- Structured Logging with Pino: Implement fast, JSON-formatted logging for easy parsing, filtering, and analysis in tools like Railway logs.
- Correlation IDs: Trace requests end-to-end across all microservices, providing a complete picture of complex interactions and pinpointing bottlenecks.
- Error Tracking: Log errors with rich context, ensuring all necessary information (e.g.,
requestId, userId, err object) is captured for efficient debugging.
- Health & Metrics Endpoints: Expose
/health and /metrics endpoints for real-time service status, dependency checks, and performance monitoring.
Quick Start
Use the tzurot-observability skill to add structured logging with a correlation ID to a new function, ensuring sensitive data is not logged and errors are properly captured.