Optimize Performance with Bits AI
This product is not supported for your selected
Datadog site. (
).
Overview
RUM analyzes your sessions and surfaces recommendation cards that point to the highest-impact improvements across your pages and your critical user journeys. From any card, you can start a Bits Investigation that analyzes the issue, including the responsible code when the Source Code Integration is set up.
You can start investigations from two places:
Optimization page
The Optimization page shows how each page of your application performs on a given vital. For each page and vital, RUM displays recommendation cards ranked by impact. Each card describes a likely cause of poor performance, such as a render-blocking script, a long task on the main thread, or a slow resource delaying Largest Contentful Paint.
You can start a Bits Investigation from recommendation cards for the following vitals:
| Platform | Vitals |
|---|
| Browser | Largest Contentful Paint (LCP), Interaction to Next Paint (INP) |
| Mobile | Time to Initial Display (TTID) |
Start an investigation
- Go to the Optimization page and select an application.
- Select a page and a supported vital.
- On a recommendation card, click Investigate.
The Bits Investigation opens in a new tab, scoped to the page, vital, and time window of the card.
What Bits investigates
Bits compares slow page loads with fast ones and reconstructs what happened in the time leading up to the vital: which resources loaded, which scripts ran, and which long tasks blocked the main thread. When the page’s requests are correlated with APM traces, Bits follows slow requests into your backend services. When the Source Code Integration is set up, Bits links the issue to the files and functions responsible.
Operations Monitoring
Operations Monitoring tracks the success rate and latency of the user journeys in your application, such as signing up, searching, or checking out. When you open an operation, RUM displays recommendation cards ranked by severity. Each card covers one type of problem.
Start an investigation
- Go to Operations Monitoring and select an operation.
- On a recommendation card, click Investigate. You can also click Investigate with Bits in the operations table.
The Bits Investigation opens in a new tab, scoped to the operation, the type of problem, and the time window of the card.
What Bits investigates
Bits adapts its analysis to the type of problem on the card:
| Problem type | What Bits examines |
|---|
| Errors | The failure breakdown and trend of the operation, the top failing endpoints, attributes over-represented on failed runs, and the correlated backend traces. |
| Abandonment | How long users waited before giving up, which resources were still loading when they left, where they navigated next, and whether abandonment concentrates in one browser, device, country, or application version. |
| Crashes | Stack traces from the affected sessions, and whether the crash is concentrated in a specific application version, device, or operating system. |
| Slowness | A comparison of slow and fast runs to determine whether time is spent in the backend, the frontend, or resource loading, followed down to the backend trace or long task responsible. |
| Timeouts | Whether an instrumentation gap causes the timeouts, such as an operation definition that no longer matches a renamed route or regrouped path. Bits checks for this before investigating performance. |
After the investigation
Investigations started from RUM are standard Bits Investigations. You can:
- Find them later in the Bits Investigations list and share them with your team.
- Give feedback that Bits takes into account in future investigations.
- Send the investigation to Bits Code to generate a suggested code change or open a pull request.
Further reading
Additional helpful documentation, links, and articles: