RUM resources
A resource event corresponds to a resource or asset fetch on a webpage such as an image, XHR, Fetch, CSS, or JS library. A resource is a child event to an action event. It also has the context of the view that is currently active.
The following properties may be used to analyze and profile resources in a session:
- duration
-
Overall time spent fetching the resource
- Usage
-
Analytics can be performed to get the slowest loading resources
- Example
-
48ms
- resource.size
-
Resource size
- Usage
-
Analytics can be performed to see the size distribution of the resources
- Example
-
912B
- resource.connect.duration
-
Time to establish connection to resource server
- Usage
-
Insight into users' reachability of resource
- Example
-
20ms
- resource.ssl.duration
-
TLS handshake time for HTTPS connections
- Usage
-
Diagnose whether problem lies with the user’s network
- Example
-
15ns
- resource.dns.duration
-
DNS resolution time
- Usage
-
Diagnose whether problem lies with the user’s network
- Example
-
23ms
- resource.redirect.duration
-
Time spent on downstream HTTPS requests
- Usage
-
Redirect analytics or filtering
- Example
-
30ms
- resource.first_byte.duration
-
Waiting time to receive the first byte of the resource
- Usage
-
Can be used to find out the rate determining resource in a view
- Example
-
30ms
- resource.download.duration
-
Response download time
- Usage
-
Analytics can be performed to determine if the storage solution for the resource is slow.
- Example
-
24ms
- resource.type
-
Type of resource being fetched.
- Usage
-
Filter analytics based on resource type
- Example
-
javascript, css
- resource.method
-
HTTP method
- Usage
- Example
-
POST
- resource.status_code
-
Response code
- Usage
- Example
-
202
- resource.url
-
URL of the resource being fetched
- Usage
- Example
- resource.url_host
-
URL host
- Usage
- Example
- resource.url_path
-
URL path
- Usage
- Example
- resource.url_query
-
URL query parameters
- Usage
- Example
- resource.url_scheme
-
Protocol type
- Usage
- Example
-
HTTP, HTTPS
- resource.provider.name
-
Resource provider name
- Usage
- Example
- resource.provider.domain
-
Resource domain
- Usage
- Example
- resource.provider.type
-
The type of content provider
- Usage
- Example
-
cdn, first-party