A debug panel for every request

See the SQL queries, cache and HTTP calls, logs and errors behind each request, in the order they ran, and the line of code behind each problem. One panel for Python, JavaScript, Java and Go, with calls between your apps in one tree.

Calls to your other apps open in place

When one of your apps calls another, the other app's request appears in the caller's call tree, under the HTTP call that made it, with everything the other app recorded for it.

This works between any apps on your machine that run a Tracepanel SDK or OpenTelemetry, in any language. They link through the traceparent header, so there is nothing to set up.

The panel on a checkout: under its HTTP calls to the payments service, that service's own trace

Runs on your machine

Development only

Built for local development, not production monitoring. Python and Java turn it on in debug or dev mode, JavaScript unless NODE_ENV is production, Go under go run.

Stored in your project

Traces are kept in .tracepanel/ in your project and sent nowhere, with no account to create. The console listens on 127.0.0.1 only.

Secrets masked

Values under names like password or token are masked before they are stored.

What it catches

Each request, task and command is recorded as a trace. Tracepanel checks each trace for common problems and points to the code involved.

GET /api/orders · 101 queries
SQLSELECT order46 µs
SQLSELECT customer×50N+11.0 ms
SQLSELECT product×50N+10.8 ms
orders/api.py:18 in list_orders
Load customers and products with the orders, and 101 queries become 3.

N+1 queries

A query run once per row, from a loop in your code. The issue points to the loop and gives the fix in your ORM: select_related() in Django, include in Prisma, join fetch in Hibernate. The same for SQLAlchemy, Drizzle, TypeORM, Sequelize, Knex, Mongoose and Exposed. Repeated Redis, HTTP and MongoDB calls are detected too.

Slow and duplicate queries

Queries over 100 ms, with EXPLAIN one click away, and HTTP calls over 500 ms. The same query run twice in one request.

Long transactions

Transactions open longer than 500 ms, and emails, tasks or HTTP calls made before the commit.

Blocking calls and large results

Sync I/O in async code. A SELECT without a LIMIT that read 1,000 rows or more. A task that waited over a second in its queue.

Errors

The exception and your stack frames with their source, in the request that raised it.

Let your coding agent read the trace

Tracepanel exposes recorded traces through MCP. Your coding agent can inspect SQL queries, errors, and timings without you copying logs into the chat.

It reads profiles too: get_profile gives a trace's CPU or memory profile as text, and compare_traces shows what changed after a fix. The agent can profile a request, change the code and check the result.

find_traces
traces (2, newest first):
01K7F3QH8ZB4N2X6WJ5RTM9CDA  GET /api/orders → 200 · 9.4 ms · 3 SQL (0.4 ms) · 2s ago
01K7F3PW2C7Q4VHXN8D3KZ1MRE  GET /api/orders → 200 · 43.1 ms · 101 SQL (31.2 ms) · issues: n+1 · 12s ago

get_profile
01K7F3PW2C7Q4VHXN8D3KZ1MRE  GET /api/orders → 200 · 43.1 ms
CPU profile: 43.1 ms profiled of the trace's 43.1 ms · 41 samples, one every 1.0 ms
functions by total time:
  41.0 ms 95% list_orders (yours) — orders/api.py:12 · self 0.4 ms
  31.2 ms 72% execute — django/db/backends/utils.py:78 · self 0.6 ms

Fail the test that adds an N+1

Each test runs as a trace, with the requests it makes to the app. A test fails when it runs an N+1 or the same query twice, with the query, the line that ran it, the fix and a link to the trace.

Allow a kind on one test, or cap a test's queries. The same rules and messages in all three runners.

  • pytestpytest --tracepanel
  • Vitestplugins: [tracepanel()]
  • JUnittracepanel-junit
FAILED tests/test_orders.py::test_list_orders
tracepanel found 1 issue in this test:

N+1: 50 similar queries · SELECT customer
  SELECT "customer"."name" FROM "customer" WHERE "id" = %s
  at orders/api.py:18 in list_orders
  in GET /api/orders → http://127.0.0.1:52811/#/t/01K7F3PW2C7Q4VHXN8D3KZ1MRE
  Load the related object in the same query: add `select_related()` for this ForeignKey to the queryset that produced these rows.
The panel's Profile tab on an admin list, close up: its time by share, most of it in templates, the flame graph of the three columns that ran a query per row, and its functions with their lines

See where a request's time and memory go

Turn on Profile in the panel, and each request your browser makes is sampled every millisecond while it runs. The Profile tab shows the time in code, where it went by package and by function, and a flame graph of the calls down to the slow one.

Ask for memory too, and it shows the peak, what the request kept and the lines that allocated it, with the garbage collector's pauses. Time profiles work in Django, FastAPI, Flask and Falcon, in Express, Fastify, Koa, Hono, NestJS, Next.js and Nuxt, in Spring Boot and Ktor, and in Go. Memory profiles work in Python and on Node, and in Java and Go without the lines.

Browse requests, tasks, and commands

Open /__tracepanel__/ to see everything the app recorded, across every request, task and command, with pages for SQL, HTTP, AWS and LLM calls. Services in other languages appear through OpenTelemetry. Save any trace as one HTML file to share.

The console's HTTP page: requests and latency over time, the slowest and the failing endpoints

Latency and errors per endpoint over time, the slowest and the failing ones first.