What does a pageload trace show, and how does it link to errors and logs?

A pageload trace records how long one page load took, with child spans for the work inside it. A navigation trace does the same for a route change inside your app. Errors and log lines sent during that load carry the same trace ID, so the trace page lists them beside the spans. Unsampled page loads have no trace.

Last updated 26 November 2026. By Paul Badarau.

Sofia, a fictional photographer, hears from two clients that her gallery page is slow on phones. She turns on tracing in @sentry/browser:

Sentry.init({ dsn: MONITORING_DSN, integrations: [Sentry.browserTracingIntegration()], tracesSampleRate: 0.5 })

Two days later, Performance shows the gallery's page loads with a p95 duration of about 3.8 seconds. She opens one of the recent traces. Its spans are laid out by parent and time, and one image request takes most of the load. Under the spans, the trace lists an error and a warning she logged, both from that same page load.

  1. Add Sentry.browserTracingIntegration() to integrations and set tracesSampleRate between 0 and 1. At 0.5, about half of page loads are traced.
  2. Open Performance for the Project. Each page load or navigation is a segment. The page shows how many were received, the error rate, and p50 and p95 durations marked as approximate, within 2 % of the exact value, for each name and operation.
  3. Open a recent trace to see up to 1,000 spans. A span whose parent never arrived starts its own group.
  4. Read the errors and log lines listed with the trace. Each one carries the same trace ID. From an error's details you can go the other way, to its trace.

Performance figures cover up to 30 days. Individual traces, their waterfalls and the errors linked to them are kept for 7 days. Spans do not count toward the Workspace's monthly Monitoring events.

Every figure counts only the page loads that were traced. Monitoring estimates the total before sampling only when every segment reports its sample rate, and it never scales the charts up. A slow page load that was not sampled has no trace to open, and an error from it has no waterfall beside it. A Project can also send only 100 different names and operations a day before later ones are counted together as (other), so names that contain IDs, such as /photos/4821, use up that allowance quickly.

The product page for this is Monitoring.

Start your 14-day free trial