Routes
Every route of your app over a window, with its traffic, 5xx and 4xx, and response times, the slowest first.
The Routes page lists every route of your app: a method and a path. With NestJS, Hono and Fastify it is the route your code declared (GET /orders/:id, GET /posts/:slug); with other frameworks the path with its ids folded (/orders/42 and /orders/43 are both GET /orders/:id). For each one it shows how much traffic it got, how often it failed and how fast it answered, over the last hour, 6 hours, 24 hours or 7 days. The slowest routes come first.
The list#
| Column | What it shows |
|---|---|
| Requests | The route's requests in the window, with its share of all traffic |
| Per min | Requests a minute, over the window |
| 5xx, 4xx | The share of its requests that ended with a server error (500 and up) or a client error (400 to 499) |
| p50, p95, p99 | Response times: the median, and the times 95% and 99% of requests came in under |
| Queries | Database queries a request, on average, flagged N+1 when some requests ran a query in a loop |
| Last request | When it was last called, with that request's status |
| Activity | Its requests over the window, failures in red |
Click a column's header to sort by it, or pick an order: slowest, busiest, most 5xx, latest, or by path. Type in the search box (press /) to find a route by its method or path.
Above the list, the window's numbers: how many routes, requests a minute, the share that failed with a 5xx, the p95 across every route, and how many routes have a p95 of a second or more.
What stands out#
The page points out the routes worth a look, the most pressing first:
- A route that fails: 5% or more of its requests ended with a 5xx.
- A route that's slow: a p95 of a second or more, with how much of a request goes to the database.
- A route that queries in a loop: a quarter or more of its requests ran an N+1.
- A route that got worse in a release: its latest release fails much more often, or has a p95 at least 50% (and 100 ms) slower than the release before. Releases come from the SDK's
releaseoption.
A route needs 5 requests in the window, and a release 10, before the page draws conclusions from them.
Filters#
Filters keeps routes with 5xx errors, 4xx errors, a slow p95 or N+1 queries, and counts only the requests from the environments, methods and releases you pick. Filters in force show as chips; Reset clears them. The page's address keeps the window, the filters, the order and the route open, so a link opens the same view.
A route up close#
Click a route (or use ↑ and ↓) to open it beside the list:
- Its numbers: requests, 5xx and 4xx, and p50, p95 and p99.
- Traffic over the window, by status class. Drag across the chart to look at a stretch of time alone: everything under it narrows to that stretch.
- Response time: the median and p95 of each stretch.
- Response times: how many requests took under 50 ms, 50 to 100 ms, and so on.
- Status codes, each opening those requests on the Requests page.
- The slowest requests and the latest failures, each opening the request.
- By release: requests, 5xx and p95 for each release, flagged when a release got slower.
- What a request does: database queries and their time, N+1 loops, outgoing calls, exceptions and how many users called it.
- Who calls it: the users who call it most, with how many of their requests failed.
Requests opens the route's requests on the Requests page, in the same window. In PeekInside Cloud, Set alert starts an alert on the route failing.
Where the numbers come from#
Paths are encrypted by the SDK, so PeekInside Cloud can't count routes. Your browser does: it opens the window's requests with the project key and counts them. It reads older pages until the window is covered, up to the latest 20,000 requests; past that, the status bar says how far back the numbers go. Requests sealed with another key are left out and counted in the status bar.