Last updated 26 November 2026. By Paul Badarau.
A fictional bakery site has an order page that visitors say opens slowly on their phones. Its developer wants to know whether the time goes to the page's scripts, to the photos, or to the API call that loads the day's menu.
- Turn on tracing. Add
Sentry.browserTracingIntegration()tointegrationsinSentry.initand settracesSampleRate. The SDK sends no traces until a sample rate is set. Each sampled page load then arrives as one segment with child spans for the files and requests the page made. - Open Performance for the Project and pick a period. The Operations table lists the 20 busiest names with their segments, error rate, p50 and p95. Page loads have the operation
pageload. A p95 far above the p50 means most loads are fine and a minority are slow. Below 20 segments, p95 is only the slowest few loads. - Get a trace of the slow page. Recent traces lists the 20 newest segments of the period. Open the order page yourself, reload Performance, and your load is near the top if the SDK sampled it.
- Read the waterfall. Spans are laid out by parent and start time, and each one shows its operation. Find the longest bar the page waits for:
resource.scriptorresource.imgfor a heavy file,http.clientfor a slow API call, orui.long_animation_frameandui.long_taskwhere the main thread was busy. Errors and logs with the same trace ID are listed under the waterfall. - Fix the longest bar, deploy, and watch p95 over the next days. Counts and percentiles cover up to 30 days. Each trace is kept 7 days.
In the bakery's trace, the menu call takes 2.4 seconds and the page shows a spinner until it returns. The developer caches the menu and leaves the photos alone.
A page load's duration is often longer than the wait your visitor saw. The SDK keeps a page load open until no new span has started for 1 second, for 30 seconds at most, and the duration runs to the end of its last child span. A chat widget or a tag that loads after the content adds its time to the total, even though the page was already readable. Monitoring has no web vitals view to separate the two. Read the waterfall for the moment the page's own content and data finished loading.
The product page for this is Monitoring.