Tracepanel

Tracepanel

A local debug panel that records every request, task and command of your app with its SQL, calls, logs and errors.

Tracepanel shows what your app does on every request. An SDK inside your app records each request, background task and command with its SQL queries, its calls to Redis, caches, HTTP APIs and other services, its templates, log lines and errors. It sends each trace to a local agent. The agent finds N+1 queries and calls, duplicate and slow SQL, slow HTTP and datastore calls, large results, blocking calls in async code, long transactions, work inside a transaction, queue waits, htmx mistakes and errors. Each issue points to the line of your code it comes from and suggests a fix.

The Tracepanel panel showing a request's call tree

You read the traces in two places. A badge in the corner of each page opens the panel, which lists every request the page made with its call tree, SQL and logs. The console at /__tracepanel__/ lists every request, task and command the app ran, and every system it called.

Tracepanel is for development. Python and Java turn it on in the framework's debug or dev mode, JavaScript unless NODE_ENV is production, and Go when the app runs under go run. Your traces stay in .tracepanel/ in your project, and Tracepanel sends them nowhere.

Get started

Tracepanel has SDKs for Python, JavaScript, Java and Go. The Python SDK supports Django, FastAPI and Flask, and also Starlette and Falcon. The JavaScript SDK supports Express, Fastify, Koa, Hono, NestJS, Next.js, Nuxt and Bun, and records the pages of a single-page app in the browser, on Vite or in Angular. The Java SDK supports Spring Boot and Ktor. The Go SDK supports net/http with any router on it, gin and Echo, and any database on database/sql. A service in another language shows in the console through OpenTelemetry, with no Tracepanel SDK. See How it works.

Learn the concepts

Versions

Each SDK shares its minor version with the agent it uses, and each has patch releases of its own. The agent and the Python, JavaScript and Go SDKs are at 0.17 today, the Java SDK at 0.16. pip install tracepanel and npm install @tracepanel/js install the newest agent of the same minor with them, and the Java and Go SDKs download it the first time.

An SDK needs an agent of its own minor, such as 0.6 for 0.6, and upgrading the SDK brings it along. An SDK of 0.5 keeps its agent of 0.5 until you upgrade it.

Each repository's changelog lists what changed in each version:

On this page