Long task user events capture tasks that block the browser's main thread for an extended period, impacting user experience and performance.
A long task is a browser task that occupies the main UI thread long enough to cause high or variable input latency and prevent users from interacting with the page. Long tasks are detected using the W3C Long Tasks API. Dynatrace RUM captures long tasks as individual user events and also aggregates them within page summary and view summary events. Only supported by RUM JavaScript.
This query searches for all long tasks.
fetch user.events| filter characteristics.has_long_task == true
| Attribute | Type | Description | Examples |
|---|---|---|---|
| string | experimentalFixed value |
|
| boolean | stableFixed value |
|
| Attribute | Type | Description | Examples |
|---|---|---|---|
| string | experimentalOne of the following strings refers to the browsing context or frame that can be attributed to the long task: |
|
| string | experimentalThe ID of the container where the long task happened. |
|
| string | experimentalThe name of the container where the long task happened. |
|
| string | experimentalThe source of the container where the long task happened. |
|
| string | experimentalThe type of container where the long task happened. |
|
| string | experimentalThe name of the attribution. |
|