Skip to content

Insight ​

Use Insight to see what your application did to answer a request, such as the queries it ran, the logs it wrote and the mail it sent.

Open it ​

Send a request to your own application. If the application returned something to show, the response viewer gets an Insight tab with a count. The tab is not shown for other hosts.

Insight opens on Exception when the request threw one, and on Timeline otherwise.

Tabs ​

TabWhat it shows
ExceptionThe class, message, location and stack trace. Shown only when the request threw an exception.
TimelineEach query and HTTP call as a bar on a time axis.
QueriesQueries grouped by shape, with the bindings of each run.
LogsThe log entries written during the request, with their context.
GatesThe gate and policy checks. Denied checks come first.
CacheHits, misses, writes and forgets, with their keys.
JobsDispatched jobs, with their queue and connection.
MailSent mail, with its subject and recipients.
NotificationsSent notifications, with their channel.
HTTPCalls made with the HTTP client, with method, URL, status and duration. The query string is left out of the URL.
EventsEvents your application dispatched. Framework events are left out.
SandboxEffects that were faked. See Sandbox mode.

The Cache, Jobs, Mail, Notifications, HTTP and Events tabs appear only when they have entries.

Use the timeline ​

The timeline places each query and HTTP call where it started, so you can see what was slow and what ran in parallel. Hover a bar to read the full SQL. Click a bar to jump to that query or call.

The Insight timeline

Spot slow and repeated queries ​

  • A group of 5 or more queries with the same shape is flagged as N+1.
  • A query that took 100 ms or more is flagged as slow.

On the timeline only slow queries are colored, and the other queries of an N+1 group are nested under the first one. In the Queries tab, use the N+1 and Slow toggles to list only those groups.

The Queries tab

Limits ​

  • Values bound to sensitive columns, such as passwords and tokens, are hidden when the application runs in production.
  • To keep the page fast, Nimbus keeps up to 500 queries, 200 logs and 200 items of each other kind. It tells you how many were left out.