Skip to content

v0.3.0

Choose a tag to compare

@Devang-C Devang-C released this 25 Apr 15:46
· 7 commits to main since this release
31f8ac0

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) — AsyncEngine support 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.local with ContextVar for correct span isolation under async concurrency

CLI

  • latencyx stats — p50/p95/p99, error rate, top slow endpoints
  • latencyx slowest — slowest recent requests, filterable by path and time range
  • latencyx errors — recent errors grouped by endpoint + message with counts
  • latencyx endpoints — all distinct paths with request count, p50/p95, error rate
  • latencyx trace <trace_id> — full trace tree with child DB/HTTP spans and durations
  • latencyx report — request volume, error rate, top slow endpoints, top errors in one view

Other

  • enabled=False fast-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.