What problem does it solve?
Provides a consistent, production-ready approach to structured logging and distributed tracing so teams can reliably trace requests, detect errors, and prevent sensitive data leakage across services.
Core Features & Use Cases
- Enforces a rigid JSON log schema with mandatory fields (timestamp, level, service, environment, traceId, spanId) to make logs machine-readable and searchable.
- Distributed tracing patterns and header propagation (W3C traceparent plus custom headers) for end-to-end request correlation across Node.js, Python, Go, and browser clients.
- PII sanitization, environment-aware log levels, and middleware examples to avoid leaking sensitive data and to meet retention/compliance needs.
- Use cases: instrumenting HTTP request pipelines, aggregating service traces for root-cause analysis, and safely exporting logs to ELK/Loki/CloudWatch while respecting retention and masking rules.
Quick Start
Add the logger to your service, ensure trace headers are propagated, and run one request to verify logs include traceId and no raw PII.