Roadmap¶
Redline has four parts: Profile, Analyze, Stress and Compare/CI. Versions 0.1–0.3 implemented request analysis, load/history and comparison/test tooling. The 0.4 development release adds the database, job and privacy workflows described in Real-world workflows. The remaining roadmap is intent, not a promise; production readiness still depends on the deployment validation gate.
| Version | Theme | Status |
|---|---|---|
| 0.1 | Profile and Analyze: traces, N+1 with fix diffs, EXPLAIN, flamegraphs, UI, Django and FastAPI | Built |
| 0.2 | Analyze more, Stress, History: Flask and Litestar, a load tester, new detectors, release history, access control | Built (alpha) |
| 0.3 | Compare / CI: refactor checks, endpoint budgets, pytest and source analysis | Released; continued in 0.4 |
| 0.4 | Real-world SQL failures, jobs, privacy and bounded capture | Development; Compose qualification green, main CI and live deployment pending |
| 0.5 | Jobs, schema and the remaining report items | Planned; several items already landed in 0.4 |
| 0.5.0b2 | Full performance testing of a multi-user application: realistic offered load (identities, data feeds, token refresh, flows, think time), spike/soak profiles, resource metrics, raw-SQL capture and fixes, SQL Server permissions, shared-store and remote runs, remote generator agents, streams and WebSockets, full MCP tool set | Built on the release branch; live managed-SQL-Server and shared-PostgreSQL qualification pending |
| 0.6 | OpenTelemetry, more workers, Postgres store and AI policy | Planned; several items already landed in 0.4 |
| 1.0 | Hardened production mode and the long tail | Planned |
The thesis¶
Load testers (Locust, k6, Gatling) only see an application from the outside. They tell you the p95 doubled at 150 users. They cannot tell you which query went from 3 ms to 410 ms. Profilers like Redline see the inside but only one request at a time. No open-source tool connected the two. 0.2 does: see Load testing.
v0.2: what shipped¶
Everything below is built and documented. The changelog has the detail.
- Five frameworks: Django (and Ninja), FastAPI, Flask, Litestar.
- New analysis: blocking in async, transactions and locks, large and unbounded results, count/exists, slow serializers, external calls, cache efficiency, logs and exception locals, GraphQL resolvers.
- Database: SQL search, a workload index advisor, unused indexes.
- Static N+1 scan for templates and DRF serializers.
- Load testing:
redline load, an open-model scheduler corrected for coordinated omission, step ramps, knee detection, per-step bottlenecks, scenarios generated from OpenAPI or captured traffic. - History: releases, hourly rollups, before/after compare, new and resolved issues, 90-day retention.
- UI: command palette, keyboard, open in editor, copy as cURL/HTTPie, replay, compare, Live mode, snapshots, the floating badge, Server-Timing.
- Configuration and access control: presets,
redline.toml,REDLINE_*, tokens, basic auth, IP allow-lists, trusted proxies, read-only mode, feature switches.
v0.3: Compare and CI¶
Make performance a thing you can regress-test.
- A pytest plugin (built in the development branch):
@pytest.mark.redline(max_queries=..., no_n_plus_one=True), so a test fails when a view regresses to an N+1. redline ciis available asredline check compare/run: JUnit output and a Markdown PR comment (+queries,+p95, the culprit line), comparing a run against a stored baseline.--ruffadds Ruff JSON to the same report; Redline does not become a linter.- Flamegraph diffs between two requests or two releases are deferred to the next release.
- OTLP export is implemented in 0.4 as an explicit preview/send command: a root span,
sanitized SQL spans, issue log records and W3C
traceparentpropagation. OTLP import remains unplanned. - Baselines and diffs per endpoint in CI, building on the History comparison already in 0.2.
- Refactor check (shipped in 0.3.0a1, see Refactor check): pick a set of read-only endpoints, record a baseline before a refactor, run it again after, and get a per-endpoint report of performance changes (time, queries, issues, overall average) and of response changes (a diff that ignores fields that change on every call). From the UI and from the command line, with an exit code, JUnit and a Markdown PR comment for CI.
redline analyze: a static analysis of the application's Python code (not only its templates) that finds likely bottlenecks before any request runs: queries inside loops (N+1), missingselect_related/prefetch_related/selectinload, unbounded queries, blocking calls inside async views, and similar database and logic problems. Extends the template scan shipped in 0.2.
See Performance workflows for the implemented UI, assertions, source analysis and detector additions. Two live targets, differential flamegraphs, serial-call concurrency advice and automated cold/warm scenarios are deferred to the next release.
v0.5: Jobs, schema and the report's remaining 0.5 items¶
Most of this scope already landed in 0.4; the table records what is still open so it is not silently treated as finished.
| Item | State |
|---|---|
| Celery task integration, request -> task stitching, jobs/stages/row outcomes and Jobs UI | Landed in 0.4 |
SQL Server online compilation (sp_describe_*, NOEXEC), schema snapshots and schema-watch |
Landed in 0.4 |
Trigger-aware OUTPUT lint and schema metadata |
Landed in 0.4 |
Multi-container storage: WAL probe, per-role files, extra_stores, two-process test |
Landed in 0.4 |
| FastAPI with mounted Flask in nested mode | Landed in 0.4 |
| SQL Server actual plans and STATISTICS IO | Landed in 0.4 |
check-imports lazy imports and --ruff pass-through |
Landed in 0.4 |
| Error fingerprinting and a cross-deploy regression view | Open |
| RQ and Dramatiq adapters on the Celery contract | Moved to 0.6 |
v0.6: OpenTelemetry, more workers and the 0.6 items¶
| Item | State |
|---|---|
| OTLP span/log export with explicit SQL opt-in | Landed in 0.4 |
| Raw-SQL N+1 batching advice | Landed in 0.4 |
Log capture allowlist (capture_loggers / ignore_loggers) |
Landed in 0.4 |
| RQ and Dramatiq integrations | Open |
redline_core.dbapi.wrap for non-SQLAlchemy projects |
Open |
Postgres store (storage_url = "postgresql://...", see Storage) |
Landed in 0.5 |
| AI-diagnosis policy, as a separate package if built | Open; never sends trace data without explicit opt-in |
v1.0¶
The long tail.
- Hardened production mode beyond the SQLite store, including the Postgres store from 0.6.
- Distributed worker trace stitching beyond the explicit Celery job recordings and parent/request ID labels added in 0.4.
- A memory-per-request extra (tracemalloc or memray).
- In-process fault injection: latency or errors per endpoint or query.
- Index what-if through HypoPG: test a suggested index without creating it.
- Lock-wait detection from
pg_locks, and deeper pool and threadpool saturation signals. - Folding
django-signal-tracerin as a panel.
What is likely to be missing for a while¶
Be realistic about gaps that are not on the list above:
- Frameworks other than Django, FastAPI, Flask and Litestar (Falcon, Sanic, Pyramid).
- ORMs other than the Django ORM and SQLAlchemy (you can write a FixSuggester).
- Non-SQL data stores beyond Redis and Django's cache API (MongoDB).
- Cross-service distributed tracing.
- Alerting.
- Distributed load generation, browsers and WebSockets in the load tester.
How the roadmap is decided¶
Each version gets its own detailed plan before work starts, and each stays small. The outline above is from the project plan; details, ordering and scope inside each version may change. Issues and ideas are welcome on the issue tracker.
0.4 development release¶
Database failures, SQL Server plan tooling, offline/online SQL checks, jobs, privacy, storage probes and shared-environment controls are described in Real-world workflows. Driver and worker support distinguish local fixtures from live deployment validation. The 0.4 branch also carries several items the report scheduled for 0.5/0.6 (OTLP, schema watch, raw-SQL advice, import smoke tests, MSSQL unused indexes); the tables above keep the genuinely open items visible.
A green local validation run is not a claim that every report requirement is complete. The open rows in 0.5/0.6 are the remaining gaps, alongside deployment-specific evidence that no test suite can supply.