What problem does it solve?
Wide events and canonical log lines provide consistent, context-rich logs per request to improve debugging and analytics, reducing noise from scattered log statements.
Core Features & Use Cases
- Wide Events (CRITICAL): Emit one context-rich event per request per service, at completion, to enable end-to-end observability.
- High Cardinality & Dimensionality (CRITICAL): Include fields such as user_id, request_id, subscription, region, and multiple context fields to support deep analytics.
- Business Context (CRITICAL): Attach business-relevant information like subscription tier, transaction values, and feature flags.
- Environment Characteristics (CRITICAL): Include commit hash, version, region, instance ID, and runtime info, set up at startup for all events.
- Single Logger (HIGH): Use a single logger throughout the codebase for consistent formatting.
- Middleware Pattern (HIGH): Use middleware to manage timing, environment, and emission.
Quick Start
Implement a single global logger and middleware to emit a JSON wide-event per request at the end of processing.