What problem does it solve?
Developers face difficulty identifying latency bottlenecks in complex code paths. This Skill provides human-readable timestamped logs with per-step timing breakdowns to quickly surface slow components and optimize performance.
Core Features & Use Cases
- Human-readable timestamps at the start of each log line to improve readability.
- Per-step durations with consistent formatting to expose bottlenecks across API routes, service calls, DB access, and external calls.
- Correlation IDs and scope labels to thread logs through a request's lifecycle, enabling nested spans and easier traceability.
- Lightweight, optional metadata (route, status, cache, db pool, rows) to enrich diagnostics without noise.
- Use Case: instrument a REST API to reveal slow dependencies and quantify improvements after optimization.
Quick Start
Instrument critical paths by wrapping work with a lightweight timing span and propagating a correlation id. Example steps: create a span for API entry, wrap DB queries, and log a final total duration with the route context. Ensure the correlation id flows through all log lines.