What problem does it solve?
This Skill provides structured JSON logging with correlation IDs and robust context propagation across asynchronous boundaries, enabling consistent, machine-readable logs that are easy to search and analyze in distributed systems.
Core Features & Use Cases
- Structured Logging: JSON-formatted logs enriched with correlation_id, user_id, request_path, and other context data.
- Context Propagation: Seamless metadata propagation across async boundaries in Python (contextvars) and TypeScript (AsyncLocalStorage).
- Performance Timing: Decorators to measure and log operation durations for critical paths and slow operations.
- Worker Metrics: Utilities to collect and propagate metrics for background jobs and workers.
- Cross-Llexibility: Consistent logging approach across languages (Python and TypeScript) for unified observability.
Quick Start
Initialize the logging context in your application, then use the provided logger to emit structured logs. Generate or propagate a correlation ID for each request or job, wrap functions with the timing decorators where needed, and use the context-aware loggers to produce consistent, traceable logs across services and workers.