The panel
The badge on your pages and the panel it opens, with every request of the browser tab, what it carried, its call tree, SQL, logs and profile.
Tracepanel adds a badge to the HTML pages of your app. The badge opens a panel
that shows what each request did. The panel lists the page itself and every
fetch() and XHR call the page makes, so a single-page app or Swagger UI shows
its API calls the same way.

The badge
The badge sits in the bottom right corner of the page. It describes the latest
request of the page. When the page loads, that is the page itself. After that,
each new fetch() or XHR call takes its place.
A single-page app from a dev server, such as Vite's, has no traced request of
its own. When the JavaScript SDK records the page in the browser, the badge
heads with the page's view, such as VIEW /books, or with the latest action
you did on it, such as CLICK "Save". Its numbers are that view's or
action's, down its whole chain of calls. It says failed in red when the
view or action failed, or one of its calls failed or got no answer. The same
holds on a server's page after a route change in the browser.
The badge shows these values for that request, view or action:
- the method and path, the GraphQL operation name, or the view or action
- the HTTP status
- the total time, in amber from 300 ms and in red from 1 s
- the number of SQL queries
- the number of issues, in amber
- the tasks the request queued, after the Tasks icon: a red chip for the runs
that failed, such as
5 failed, and an amber one for their issues
A request or a view that called other apps counts its whole chain of calls,
its own and those of the apps it called. The count's tooltip says so, such as
8 HTTP calls down its chain of calls: 1 by this view, 7 by the apps it called. The DB, Cache and HTTP calls tabs count the same way. Until the
chain is counted, the badge shows ….
While a request is in flight, the badge shows it with a turning ring and its
time so far. A call that never got an answer says no answer yet beside its
time, never in red.
A request's time is the time the page waited for it, from the call to its answer as the browser timed it, the same in flight, once it answered and once its trace is stored. A call the browser queued behind others counts its wait in the queue too.
Beside the Tracepanel logo, the badge names what served the page, such as Django or Spring, after that framework's logo where there is one. On a page that the Vite plugin or the Angular integration serves, that is the page's framework, such as Angular or React, or else Browser with a globe, never the API its calls reach. See Pages in the browser.
When the page has made more than one request, the badge also shows how many, unless it heads with a view or an action. The count takes in a view's calls that no trace answered, as the panel's list does. It counts the other requests that failed with a 5xx status in a red chip. The ring around the badge takes the color of the worst request on the page. It turns amber when a request has issues and red when a request or one of its tasks failed.
The hover card
Rest the pointer on the badge, or focus it with the keyboard, and a card opens with more detail:
- A bar of where the time went, split into framework and middleware, view
code (handler code in a Java or JavaScript app), your code, templates,
database, Redis, cache, datastores, messaging, external calls and email.
The bar is the time strip's, with its names and its numbers, the garbage
collector's pauses a GC share of their own. A line under the bar names the
share that took the most time, as the strip writes it, such as
Most time: Waiting 6 ms of the server's 16 ms. - Fix first lists up to two issues, errors first, each with the code to add and the line it comes from. Click an issue to open it in the panel.
- Other requests on this page lists up to four of the page's other
requests, failed and slow ones first. One that got no answer says
failedin red; hover a call no trace answered to see why. Click one to open it in the panel.
On a page that heads with a view or an action, the card starts with it, its time and its chain's numbers, and lists the page's requests under Requests on this page.
The card stays away while the panel is open. On a touch screen there is no hover, and a tap opens the panel.
Opening the panel
Click the badge to open the panel on the request, view or action the badge shows. Click it again or press Esc to close the panel. The panel stays open when you go to another page in the same browser tab.
A linked trace opened in the panel, such as a task a request queued or the
trace a call reached, gets a Back button that names where it goes, such as
← Call tree · GET /shelf. Docked on the right, the button shows the arrow
alone and names it in its tooltip. Back returns to the view as you left it:
the same tab, the row selected, the rows folded or opened, the part of the
time picked, the Profile tab's choices and the scroll. A chain of linked
traces goes back one step at a time. Esc does what Back does, and closes the
panel once there is nothing to go back to. Opening a request from the list
or through Follow new starts over. The panel has no Forward.
The panel docks at the bottom of the page by default. The dock button in its toolbar moves it to the right edge and back. Drag the panel's edge to resize it, and double-click the edge to reset its size. Tracepanel remembers the dock and the size for the browser tab.
When the panel is docked on the right and the window has no room for the badge beside it, the badge folds to its logo. The ring keeps its color.
The tab's requests
The panel keeps a list of the pages and requests of the current browser tab.
Each page comes with the fetch() and XHR calls it made. Tracepanel keeps the
list as you move between pages, until you close the tab.
When the JavaScript SDK records the page in the browser, the list also shows
what you did on it. Each view, such as VIEW /books, and each action, such
as CLICK "Save", is a row, with the requests it made under it. A view or an
action opens with its calls, its errors and its console output. A page the
server rendered lists its own request under the view of its load, as one
load: VIEW /docs, with GET /docs and the page's calls under it. See
Pages in the browser.
A view the app redirects from as it renders, such as /sms-campaigns sending
on to /sms-campaigns/campaigns, is no row of its own. The view it sent to
says redirected from /sms-campaigns, in the list, in its head and on the
console's trace page. A view that called anything, failed, or lasted more
than 100 ms before the next one stays a row.
A view's calls keep a row each from the moment they leave, in the order they
started, also when they go through a GraphQL gateway that sends its traces
over OTLP. A call that answered keeps its row, its time stopped, until its
trace is stored. A call that got no answer, such as a network error, says
failed in red where its status would be. One to a host that sends no
traces has no app beside it, and its tooltip says why. Neither has numbers to
wait for. A view's calls to
one host sit under one row, named after the app that served that host, such
as graphql-router ×5, or after the host, such as 127.0.0.1:8043 ×5, until
a trace names its app. The row adds up its calls' chains, and says … until
they are counted.
A request that called other apps lists them under it, a row per app, such as
library-api ×37, with its traces under it. A click on an app's row opens
the call tree at the call where that app's part of the chain starts. A click
on a request's row opens it as described in
A trace's tabs, and its tooltip names the tab, such as
Opens on DB, the tab you used last.
Docked at the bottom in a window at least 900 pixels wide, the panel shows the list beside the trace, as the browser's Network tab does. The oldest page comes first and new requests arrive at the bottom. If you scroll up to read an older request, a ↓ N new button counts what arrived below. Drag the divider between the list and the trace to resize them.
Docked on the right or in a narrow window, the panel puts the list in a menu at the top. The menu lists the pages and requests of the browser tab. Under it, a strip lists the requests of the current page once the page has made any.
A form that posts and gets a redirect, such as a sign-in, shows its POST
before the page it led to. The app names the redirect in a short-lived
tracepanel_redirect cookie, and the panel on the next page reads it. A
fetch() that follows a redirect sets no cookie.
Follow new opens each new request as it arrives. It is on by default. Turn it off to stay on the request you are reading.
Clear starts the list over from the current page. The requests stay in the console. The dialog also has a checkbox that deletes every stored trace for good, with its logs, queries, emails and issues.
A trace's tabs
The panel shows the selected request in tabs. Most tabs appear only when the request has something to show in them:
- Request shows the status and the time on the tab itself. The tab shows what the request carried: its headers, query, body, cookies and session, and the response's headers. See Request. A task shows Task with its outcome, a command Job, a WebSocket event WebSocket and a browser page Page. Under Related traces, the tab lists the traces this one is linked to: the tasks it queued, the trace that queued it, and a call to another app that another project's agent recorded, with a link to that project's console.
- Call tree shows what the request did, in order: middleware, the view (the handler in a Java or JavaScript app), SQL, calls to Redis, caches, HTTP APIs and other systems, templates, signals, emails, queued tasks and logs.
- Error shows the exception with its stack and the local variables of your code. It appears when the request raised one.
- Issues lists the issues Tracepanel found, each with the line of code it comes from and a suggested fix. It appears when there are issues. See Issues.
- DB lists the SQL queries with their count and total time on the tab. Where the trace's details are narrow, as beside the panel's list, the tab is named Queries, and HTTP calls is HTTP.
- Cache lists the cache calls, and HTTP calls lists the outgoing HTTP calls.
- Logs lists the log records of the request. It is always there, with their count on the tab. See Logs.
- Profile shows where the request's time went in your code. It appears when the request was profiled. See Profile.
- App shows the app's settings and versions, and what its framework finds wrong with it, such as Django's failed checks and unapplied migrations, with their count on the tab. It appears when the app sent them, as the Python SDK does. See The app's settings and checks.
The tabs that don't fit go into a More menu at the row's end, with their counts and a dot when one of them has issues or errors. The open tab always stays in the row.
Calls to other systems, such as Redis used directly, MongoDB or a broker, are in the call tree. The console has a page for each system. An email is in the call tree too, and the console's Emails page lists them all.
The keys 1 to 9 open the tabs in the order they are shown.
A request opened from the list, or through Follow new, opens on one rule, the same in the console:
- the tab its link names, such as an issue's Issues or Error tab
- else Error, when the request failed
- else the tab you last picked in a trace's tab bar, when the request has it
- else Call tree
The panel and the console share the last tab picked in the browser. Profile and App are never carried over to the next trace. Back is no fresh open: it returns to the tab you left.
Request

In the panel, the tab starts with the method, the URL, the status and the time. The console's trace page shows them in its header instead. A card follows with the user, the runtime, when the request started and the trace id. Under it, a switch picks one part of the request, as the browser's devtools do:
- Headers: the request's headers. The ones every browser sends are folded under a line that counts them.
- Query: the query string, one parameter per row.
- Request body: the body as far as the app read it. A form shows as fields, JSON shows indented, and an uploaded file shows its name and size.
- Cookies and Session: the request's cookies, and the session the app read.
- Response headers: the response's headers.
- Response body: the body the app sent, with its size. A page, a stream, a compressed body and binary content show their size only.
- Attributes: every other attribute of the trace.
A body copies with the button in its corner, as it was stored, not as laid out. A body cut at the SDK's limit says the copy holds what was kept.
A value under a name that looks secret, such as password, token, csrf,
sessionid, Authorization or Set-Cookie, is masked. These values stay on
your machine. A shared trace leaves them out unless you include values. See
Sharing a trace.
What each SDK records differs by framework:
- Python: everything above in Django, FastAPI, Starlette, Flask and Falcon. Falcon has no session of its own.
- JavaScript: everything above. The session comes from express-session
or cookie-session in Express and NestJS, and from
useSession()in Nuxt. Next.js and Bun have no session of their own. See What a request carried. - Java: everything but the response's body, in Spring Boot and Ktor, the
session from Spring's
HttpSessionor Ktor's Sessions plugin. - Go: headers, query, cookies, the request's body and the response's
headers, on
net/http, gin and Echo. Go has no session of its own.
TRACEPANEL_CAPTURE_REQUEST=0 turns it off in every SDK, as does
capture_request = false in the Python SDK's settings. The Python and
JavaScript SDKs keep a body up to 64 KiB, set by max_body_kb and
TRACEPANEL_MAX_BODY_KB, and capture_body = false or
TRACEPANEL_CAPTURE_BODY=0 leaves the bodies out.
Call tree
A time strip on top of the call tree shows where the time went, moment by moment, in shares: the framework, view or handler code, your code, templates, database, Redis, cache, datastores, messaging, external calls, LLM calls, storage, email and, in a profiled trace, the garbage collector's pauses and waiting. The trace's own lane takes each moment's share color, hatched where a profile says the code waited. Waiting is a share of its own, last in the legend and hatched as the strip draws it, so a task that slept 311 ms of 345 says so rather than counting the sleep as your code's. In a Go profile, whose samples are the CPU's, it is the time off the CPU less the calls'. The lanes under it show messages, HTTP and RPC calls, logs and errors. A lane of queries, Redis or cache calls shows only when one of them is flagged. Hover a share, on the strip or in its legend, for its time, its percent and how many calls it had.
A trace's time is split one way everywhere: the strip and its legend, the
call tree's code rows, the Profile tab, the badge's hover card and the MCP
server's get_profile read the same split, so for the same stretch they say
the same shares. A query's time is Database, the time in queries the DB tab
says. Opening a connection, such as a pool's wait or a login, is its
caller's time, and a collector's pause during a query stays the query's. In
a span's own code, a profile splits each 10 ms by the stacks seen in it:
those that waited are Waiting, those running your code are Your code, and
those running only the framework's are Framework & middleware, under a
handler, a middleware or the request's root span alike. A span's own code
before the profile's first sample is a share of its own, Not profiled.
The total is written as the header writes a time, such as 123 ms or
1.6 s, and each share is rounded once to that step, so the shares as you
read them add up to the total as you read it, and their percents to 100%. A
share shorter than the step is written as the header writes a time, such as
0.6 ms of 310 ms, and never rounded away.
Pick a part of the time to narrow the tree:
- Click a share, on the strip or in the legend, such as Database or Templates. The tree keeps that kind's calls, with the rows on the way to them dimmed and opened.
- Drag across the lanes, or across the tree's bars, to keep the calls of that
stretch of time. The legend's chip names the range, such as
Time 11 ms – 1.6 s.
Click the share again, the range chip's ×, Show all or press Esc to let it go. Console in the toolbar opens the trace with the same pick.
The legend's other chips filter the tree by kind of row, such as Signals, Tasks, Transactions, Mail, GraphQL, Logs and Errors. A chip appears only when the request has such rows.
A long stretch of a span's own code with nothing traced in it is a row of its
own, its bar where it fell. With a profile, the row is named by the function of
yours that ran most and the one that called it there, as the flame graph draws
them, such as render_csv in export_orders, and otherwise untraced code. When
the app that recorded the trace profiles a request when asked, and the trace has
no profile, hovering untraced code says how to see what ran there: profile the
request with the panel's flame. A wait is a row too, named by what the code
waited on, such as asyncio.sleep in send_digest or await sync_to_async(…) in product_feed, with its line after the name. In a profiled trace, the flame
after such a row's name, or a click on the row, opens the Profile tab at that
stretch, only the time the row took: a row of 7 ms opens a profile of 7 ms. A
row whose code ran in pieces between calls opens the profile of those pieces,
such as 10 ms profiled of these stretches' 10 ms. A wait row that holds
several waits says so, such as waiter.acquire and 3 more waits in get_author.
A few milliseconds of code beside a long wait fold into one row with it.
The tree shows a trace's warnings and worse among its rows. Its info and debug
records stay out, and a note on the span they were logged in counts them,
such as 3 logs. The legend's Logs chip, or a click on the note, shows them
all. The Logs tab always shows every record. A dump, what your code printed
to look at, always shows, as a DUMP row with its call site and its first
argument. See Dumps.
Three or more identical queries or calls under the same parent fold into one row with a count, such as ×50. The row sits where the first one ran. Its time is their time on the clock, as the DB tab says it, with the calls that ran side by side counted once. Hover the time for what they add up to and, where gaps between them make it longer, the time from the first's start to the last's end. A row that is part of an issue carries its mark. A call that took a fifth of the trace has its time in amber, and half of it in red.
A folded row of calls says how they went, as each call's own row does:
2 failed in red for the ones that failed, with a 5xx or no answer, and
3 × 404 in amber for the ones answered 4xx, or 4xx when the codes differ.
The row's edge takes the color of the worst of them. The HTTP calls and Cache
tabs mark their folded rows the same way.
A call still running when a page's view ended, such as on a route change, runs to where it was cut, the end of the trace, and fades out there, in its bar and on its lane of the time strip. A call answered 4xx is amber on the lane, as its row is.
A database driver's own HTTP requests are no calls of the app, such as the
requests Snowflake's connector makes to log in, run a query and fetch its
results. The clients of BigQuery, Databricks, Elasticsearch and DynamoDB make
them too. They stay out of the tree, under any SDK or OpenTelemetry. Their
time stays in the connection or the query, and its db.http_calls counts
them. An HTTP call your app makes while a query runs stays in the tree.
When such a request reached a service that records traces too, the two
traces still link. The connection or the query keeps the span ids its
requests carried the trace on with, in db.http_w3c_span_ids. The service's
trace says it was called by the caller's trace, through that span, and the
caller lists it among its calls.
A task the request queued shows under the row that queued it. Until a worker runs it, the row reads "waiting for a worker…". The run takes its place as it arrives, with a link to the task's own trace, without a reload. A call that reached another app shows that app's trace under the call. When that trace has a profile, its row has the flame too: a click on the flame, or Open its profile in its details, opens that trace at its Profile tab. Its code rows are named from its own profile, and a click opens it there, at the stretch the row stands for. Open the task's trace, Open the trace it served and the other links of a row open the linked trace on its call tree, its root row selected. Back leads to where you were. See Opening the panel.
The traces of the apps a request or a view called fill in as they are
stored, about a second after the call. Until the tree has every one of them,
a note over it says More on its way, and how many calls it waits for. It
counts only the calls whose traces haven't arrived.
A call to a host that sends no traces, such as a gateway's remote subgraph,
has nothing under it, in the call tree and the HTTP calls tab. Its row's
tooltip and its details say why, such as Not traced: reviews.example.test sent no trace for this call. A call says so once its trace didn't come in the time a
call's trace is waited for: 10 seconds after the last call of the chain to
its host ended, since an app over OTLP sends its spans in batches.
A GraphQL call shows the document it ran in its details in the caller's call tree too: the document the call sent, which the JavaScript SDK's browser recording keeps, else the one of the trace that served it.
Click a row to see its details: the kind, when it started, how long it took, the formatted SQL with the query plan the DB tab has, and every attribute. Click it again to close them. An LLM call's details give its model, tokens and cost, and a storage call's its storage, operation, path and bytes. See LLM calls and Storage. A span from OpenTelemetry ends its details with As received over OTLP. See OpenTelemetry.
A code block, such as a query, a query plan, a dump's value, a GraphQL document, a body, an error, an email's text or a log message, wraps its long lines inside its box and keeps each line's indentation. Each copies with the same button in its corner.
When the call tree is wide, the details open in a pane beside it. Drag the pane's edge to resize it, or focus the edge and use the arrow keys. Double-click the edge to reset its width. When the call tree is narrow, the details open under the row.
Issues

Each issue names its kind, its title, the culprit line and a suggested fix. Show N queries switches to the tab of the issue's calls, such as DB, with the calls highlighted. For calls without a tab of their own, it opens the call tree. All occurrences opens the issue in the console with every request it happened in.
DB

The DB tab is a table of the queries, with Query, Time, Each and Share
columns that you can resize and hide. A line over it counts them, such as
74 queries · 5 unique · 4 ms on the clock · slowest 0.6 ms, with the
Grouped and In order switch at its end. Where the panel shows the
trace beside its list, the line and the switch are left out. Grouped, the
default, folds the queries into statements, the slowest first, with ×13
beside a statement that ran 13 times. A query's comments, such as
sqlcommenter's tags or a traceparent, don't set it apart from its repeats.
In order lists every query with its start and the values it ran with.
Time is a row's time on the clock: queries that ran side by side count once.
Hover it for what they add up to and, where gaps between them make it
longer, the time from the first's start to the last's end. Each is a
statement's time per query, such as ~0.9 ms, so many fast queries read
apart from one slow one. It shows when a statement ran more than once. Share
draws each row's part of the queries' time on the clock as a bar, with its
percent. The percents add up to 100%. Where rows ran side by side, each
counts its own time, so they add up to more, and the column's tooltip says
so. A narrow table drops Each first, then Share.
A line under the table adds it up: how many queries, their time on the
clock and what that is of the request's time, such as
74 queries · 4 ms in the database · 15% of the request. The tab's time is
the time strip's Database, written the same, so the header, the DB tab and
the strip say one number. Where queries ran side by side, the line over the
table also says what they add up to, apart, such as 12 ms added up.
Where the queries come from more than one call of a chain, such as a view that called two services, the table has a section per call. Each section's head names the call and its app as the call tree does, with how many queries it made and their time on the clock. The sections are in the order the calls started.
A row's chevron turns as it opens, as in the call tree. A row's issue chip, such as N+1, opens the row at the issue and the hint that fixes it. Open a row to see its issues first, then the statement, its fields, the query plan and the place in your code each query came from, with its time.
A query that no code of yours made, such as one from Django's admin, a
paginator or a session store, shows the library's line that asked for it,
marked as a library's. For a SELECT, even one after a
comment, and a WITH … SELECT, Explain runs EXPLAIN and shows the
plan. Explain analyze runs the query to measure the real time and rows,
in a transaction that is always rolled back. Your app runs them, on a
connection of its own, so the buttons show only while the app that recorded
the query is running. The Python SDK, the Java SDK, the Go SDK and the
JavaScript SDK with pg or mysql2 run them.
A query that changes data isn't explained, and its plan says why instead of
the buttons, such as This query changes data (DELETE inside WITH): it isn't explained. That holds for a WITH whose CTE deletes or updates, a
SELECT … INTO and a second statement after a ;. A query that locks rows,
with FOR UPDATE or FOR SHARE, is explained but not analyzed, since
analyzing it would take its locks. A keyword in a string, a quoted name or a
comment doesn't count.
The Cache and HTTP calls tabs work the same way, with Time, Each and Share,
the line under the table, such as 3 HTTP calls · 40 ms · 20% of the view,
and a section per call across a chain. They group the calls by key pattern
or endpoint, such as user:{id} or GET api.example.com/users/{id}.
Logs
The Logs tab lists the request's records in the same table as the console's Logs page, with their time, level, message and logger. Click a record to see its message, its exception as frames and every field, the same details the call tree and the Logs page show. Logged inside opens the call tree at the row the record was logged in. A link at the top opens the records in the console's Logs page, where you can filter and search them. See Logs.
Profile

The Profile tab shows where a request's time went in code. The SDK samples the request's stack every millisecond while it runs. The tab shows:
- what the profile covers of the trace's time, such as
123 ms profiled of the trace's 123 ms, and its samples, such as4 samples, one every 1 ms. What it covers is the time less its Not profiled share, never more than the trace. - where the time went, as one bar: in Your code, the time strip's shares,
named and counted as the strip's legend does them, such as Database, Your
code, GC and Waiting; in All frames, by package, such as
django.dbanddjango.template, and waiting. Click a share to light its frames in the graph. - a flame graph of the calls, the outermost on top. Hover a box for its path and time, and click one to zoom in.
- the functions, by their own time and their time in all, each with its file
and line. A function is one row, however many lines it ran or awaited at.
Under them, after a rule, muted and without a file, are the shares the
bar shows that are no function's, such as
SQL postgresql 33 ms, GC, the framework & runtime and waiting. In All frames, a function that waited says so, such aswaiting · AsyncIOBackend.run_sync_in_worker_thread, muted: its time is the bar's waiting.
Your code and All frames switch the graph between your frames and every frame, for Time and Memory alike. Your code holds the app's own frames only. The time of a library call counts to the function of yours that made it, and the samples that ran none of your code are one "framework & runtime" box, as is the time in OpenTelemetry's or Tracepanel's own code, such as a span started, even under yours. All frames keeps every frame. The tab opens on Your code, whose bar is the strip's. A profile whose samples aren't timed, such as one from an older SDK, opens on All frames when most of the time it computed, its waits left out, ran in libraries.
The tab reads in the trace's own time, as the call tree's time strip does, and
splits it the same way, so for the same stretch the bar and the strip's legend
give the same numbers. A Python, Node.js or Java profile counts each sample in
the 10 ms of the trace it was taken in. Time the profiler didn't sample is
marked and filled in from the samples around it, and a span's own code before
the first sample is Not profiled. Waiting, such as a sleep, a socket read or a
lock, is a hatched "waiting" box under the function of yours that waited, in
every language, and one "waiting" row in the list. All frames keeps the frame
that waited, such as asyncio's sleep or the JDK's VirtualThread.park. In an
async trace, the profile shows what the code awaits, with the line of its
await, not the idle event loop. An async Python task's own code shows too, the
ORM calls it hands to a thread with sync_to_async under the coroutine that
awaits them. With a range picked in the call tree, the tab profiles that
stretch.
A Node.js profile keeps the idle event loop's samples, the request waiting on
I/O or a timer, as one waiting stack, event loop. A Go app samples its CPU
time only, every millisecond of CPU by default, so a request that takes less
than a millisecond of CPU may have no sample. Go's profiler keeps no sample's
time, so the agent places a Go profile on the trace's clock as it stores it: its
samples spread evenly over the trace's own code, the rest of that time waiting
off the CPU, waiting · off CPU. The header says so, such as 30 samples of CPU time, one every 1 ms, spread evenly over your code's time. A query's or a
call's time is its span's, Database or External calls, as in every language. A
Go request over before the profiler's first sample opens on the strip's shares,
its own code Not profiled. On macOS the kernel hands a Go profiler's samples out
unevenly, so Go weighs each against the process's CPU time. Its time is an
estimate, shown as ≈ 30 ms, with CPU time estimated from 12 samples in the
header. A Go profile's memory is the whole heap's while the trace ran, with no
allocation sites.
Time and Memory switch the tab when the trace counted its memory.
Memory shows the trace's peak, what it kept and what it allocated in all, its
memory by package, a flame graph of bytes and the lines the memory was
allocated at. The peak is the highest level the memory reached, and the list
is where what was held then, or at the trace's end, was allocated, so a line
over it says what it adds up to: The list: 25 KB held at the peak, by where it was allocated. Its shares are of these. A Node.js list is sampled, as V8
counts it, so it reads ≈ and (sampled). In Your code, the list has your
functions only: a library's bytes count to the function of yours that called
it, and the sites with none of your code are one "framework & runtime" row.
A note says when the lines are from the trace's end rather than its peak, or
when other traces ran in the process meanwhile. Every SDK's
profile counts the garbage collector's runs too: the header names them, and
their pauses are a GC share of the time strip.
A Java profile's memory has no lines, as the JVM counts it:
- Allocated is what the threads that ran the trace allocated while they ran it, garbage or not, counted by the JVM for each thread. It is the trace's own, on every thread Tracepanel follows it to, such as an async request's or a coroutine's. Work handed to a thread pool Tracepanel doesn't follow isn't in it. Nor is a virtual thread on Java 21, which the JVM can't count.
- Peak is the heap's highest level while the trace ran, above where it started. It is read every 10 ms, before each collection and at the end.
- Net, what the trace kept, is the heap's level at the end less at the start. Garbage counts until it is collected, so a collection meanwhile can make it negative.
- Shared says other traces ran in the process meanwhile. The heap is the process's, so its peak and net hold theirs too. Allocated stays the trace's own.
- GC is the collector's runs while the trace ran, their pauses in all, and each pause on the trace's clock, to the millisecond.
The JVM's only cheap source of allocation sites, JFR's allocation samples, takes a handful of samples in a request, tells where memory was allocated rather than where it was held, and arrives about a second late. So a Java profile has no flame graph of bytes.
A trace that a profiled one starts is profiled too, and counts its memory when the first did: a task a profiled request queues, a job it adds, a message it sends and a call it makes to another of your apps. A trace that only its app's own setting profiles asks nothing of them.
Under the time and the memory, a line says why the trace was profiled, when
its SDK says so: Profiled: by the panel's cookie, by a request header,
by its caller, by its own setting or by your code. Each SDK can profile
the rest of a trace from your code, and the tasks, jobs, messages and calls
it starts from there:
- Python:
tracepanel.profile(), ortracepanel.profile(memory=True)to count memory too. See profile(). - JavaScript:
profile(), orprofile({ memory: true })to count memory too, on Node. See profile(). - Java:
Tracepanel.profile(), orTracepanel.profile(true)to count memory too. Kotlin imports it asprofile(). See Profiles. - Go:
ctx = tracepanel.Profile(ctx), for the calls and tasks started with that context.
To profile, turn on the Profile button in the toolbar. See The toolbar.
The toolbar
Explore, the compass icon in the toolbar, leads to what the trace page doesn't show itself:
- every call of the same endpoint, operation, task or job, with its latency, errors and issues
- up to three of the request's issues, each across every request it happened in
- the logs of every request, task and job from 30 seconds before the request to 30 seconds after it
Console opens the request in the full console in a new tab, with the part of the call tree you picked.
Profile, the flame icon, profiles every request this browser makes until you turn it off. A click, Enter or Space moves it to its next mode:
- Off: the flame is muted.
- Time: the flame is orange. The app samples where the time went.
- Time and memory: the flame is orange with a dot at its corner. The app also counts memory, which slows the whole app down while a trace is counted, a short request several times over.
The button sets the tracepanel_profile cookie for the browser session, to
1 for time or memory for time and memory, and the app profiles each
request that carries it. Every SDK counts memory: the Python SDK, the
JavaScript SDK on Node, the Java SDK and the Go SDK. Python's
profile_memory setting, and TRACEPANEL_PROFILE_MEMORY=1 in the others,
count the memory of every profiled trace. The button shows when the app can
profile: the Python SDK in every framework, the JavaScript SDK in Express,
Fastify, Koa, Hono, NestJS, Next.js, Nuxt and handlers under
withTracepanel() on Node, the Java SDK in Spring Boot and Ktor, and the Go
SDK. Bun has no profile. A request with an X-Tracepanel-Profile: 1 or
X-Tracepanel-Profile: memory header is profiled too.
The ask follows the request through your apps. The browser recording sends
X-Tracepanel-Profile on each call that carries a traceparent, and a
request that asked passes it on to the HTTP calls it makes in turn, so the
BFF and every service behind it profile the same request. Tasks, jobs and
messages carry it too, so the worker's or the consumer's trace is profiled:
the Python SDK's tasks and FastStream messages, the JavaScript SDK's BullMQ
jobs, the Java SDK's Kafka and RabbitMQ messages, and the Go SDK's
kafkatrace messages and gRPC calls. Only a request that asked passes it
on: an app whose profile setting profiles every trace leaves the apps it
calls to their own settings. An app that can't count memory profiles time
and still passes memory on.
Share, the share icon, opens a dialog that downloads the request as one HTML file that opens anywhere, with the whole chain of calls the console shows under it. Include values in the dialog keeps the values that otherwise stay on your machine. See Sharing a trace.
The theme button cycles between the system theme, light and dark. Each icon button names what it does and its key in a tooltip. Press ⌘K or Ctrl+K to search traces from the panel.
Switching the user
In a Django project, the panel can show your site as another user. Set user, or the current user's name, next to the request list opens a search by username, name or email. Pick a user and the page reloads as that user. Log out returns to an anonymous visitor.
The button appears only when all of these are true:
DEBUGisTrue.django.contrib.authanddjango.contrib.sessionsare installed.- The
user_switchsetting is on. It is on by default. - The request comes from this machine or from an address in
INTERNAL_IPS.
Tracepanel accepts a switch only from the page itself. See Safety in the Django guide.