Repository navigation
v0.3.0
What's new in v0.3.0
Framework support
- Flask instrumentation —
latencyx.init(app)works with Flask now, same as FastAPI - SQLAlchemy tracing (sync) — query names, durations, parent span linking via engine event listeners
- SQLAlchemy tracing (async) —
AsyncEnginesupport with correct context propagation across thread pool boundaries
Storage
- SQLite exporter as the default local storage — traces survive restarts, no external infra needed
- WAL mode, schema versioning, indexes on timestamp/path/duration/trace_id
Context propagation
- Replaced
threading.localwithContextVarfor correct span isolation under async concurrency
CLI
latencyx stats— p50/p95/p99, error rate, top slow endpointslatencyx slowest— slowest recent requests, filterable by path and time rangelatencyx errors— recent errors grouped by endpoint + message with countslatencyx endpoints— all distinct paths with request count, p50/p95, error ratelatencyx trace <trace_id>— full trace tree with child DB/HTTP spans and durationslatencyx report— request volume, error rate, top slow endpoints, top errors in one view
Other
enabled=Falsefast-path — skips all instrumentation at the entry point with zero overhead
Notes
This release is designed for local development and staging. See the Production section in the README before using in production.