What problem does it solve?
Production Python applications often lack consistent, machine-readable logs, reliable metrics, and end-to-end traces, making it difficult to answer what happened, where it happened, and why without deploying new code or running time-consuming investigations.
Core Features & Use Cases
- Structured Logging: Emit JSON logs with consistent fields for filtering, searching, and ease of ingestion into log systems.
- Metrics with Prometheus: Collect bounded-cardinality counters, histograms, and gauges to track the four golden signals and drive alerts.
- Distributed Tracing: Instrument code with OpenTelemetry spans and propagate correlation IDs across services for end-to-end request visibility.
- Use Case: Instrument a FastAPI or background worker service to add JSON logs, Prometheus metrics, and OTLP tracing so that on-call engineers can rapidly triage latency spikes and error cascades.
Quick Start
Instrument your FastAPI application with JSON-structured logs, Prometheus metrics, and OpenTelemetry tracing by adding the provided logging configuration, a correlation-ID middleware, and metric decorators to your endpoints.