View (RUM)
A view is the unit in Datadog RUM that records one screen a user opened as one item. Views sit under sessions, and loading time and Core Web Vitals are collected per view.
Overview
The loading times and per-screen slowness shown on RUM dashboards are values aggregated with each view counted as one item. The browser SDK creates a view when a new page is opened and when the URL changes in an SPA. The times to care about it are when loading time comes out longer than it feels, when some metrics are empty after screen transitions in an SPA, and when the same screen is split across multiple names and graphs become hard to read. Knowing where views are divided and what they measure helps you avoid misreading the numbers.
A record that counts one opened screen as one item
For the view events that the RUM browser SDK creates for each display, you can open a loading waterfall chart one by one in RUM Explorer (as of October 2026; Source: Monitoring Page Performance). A view sits under a Session (RUM), and the actions, resources, and errors that occur while on the same screen are tied to the view by view.id (Source: RUM Browser Data Collected). The hierarchy and retention periods are summarized in the explanation of sessions.
Loading time measures "until activity stops"
The loading time of a view, loading_time, is the time until the page is ready and neither network requests nor DOM changes are occurring. The start and end points differ between the initial load (initial_load) and SPA screen transitions (route_change). The initial load runs from navigationStart to whichever is later of loadEventEnd and the point when activity first pauses. An SPA screen transition is measured from the point the URL changes to the point when activity first pauses (as of October 2026; Source: Monitoring Page Performance). Activity here means three things: ongoing xhr or fetch requests, records of JS or CSS loading completing, and DOM changes. When none of these occurs for 100 milliseconds, activity is considered to have paused. Only activity after the SDK is initialized is counted.
Never-ending requests and constantly moving elements extend the time
On screens where activity never pauses, the 100-millisecond judgment can become inaccurate. The examples the official documentation gives are apps that send to an analytics API on every click or at regular intervals, and apps that keep connections open with streaming or long polling. Listing such requests by URL or regular expression in the initialization setting excludedActivityUrls removes them from the activity judgment. There are also elements that keep changing, such as loading spinners, progress bars, and clocks. Adding the data-dd-excluded-activity-mutations attribute to these removes them from DOM changes (as of October 2026; Source: Monitoring Page Performance). When the automatic judgment does not match when the screen is complete, you can set the value by hand by calling setViewLoadingTime at the point the display finishes. Each call overwrites the value, and after you call it, the automatic judgment stops.
Some metrics are empty for SPA screen transitions
When the URL changes without a page reload, the SDK creates a new view with loading_type:route_change even in an SPA. URL changes are tracked through the History API, and even with the approach of switching screens with #, the SDK detects hash changes and creates a new view (as of October 2026; Source: Monitoring Page Performance). However, not all Core Web Vitals are attached to views after a transition.
| Metric | Initial view | Screen transition view | Main cases where no value appears |
|---|---|---|---|
| LCP | Recorded | Not recorded | Pages opened in a background tab |
| FCP | Recorded | Not recorded | Pages opened in a background tab |
| CLS | Recorded | Recorded | The browser does not support layout-shift |
| INP | Recorded | Recorded | No interaction at all during that view |
As one way to compare, if you base the speed of screens after a transition on loading_time rather than LCP, you are not dragged down by empty values.
Is the same screen aligned to one name?
By default, view names are created from the URL path, and path segments containing digits are treated as IDs and masked. The steps for naming views by hand to match screen units are summarized in the article on setting up the RUM browser SDK. There is also setViewName, which replaces only the name without starting a new view, and it applies to the view and its child events from the point it is called (as of October 2026; Source: Advanced Configuration). List the view names of your own app in RUM Explorer, and check whether one screen is split into dozens of names by IDs or slugs that contain no digits, or conversely whether separate screens are grouped under one name.