Skip to main content
The RUM Browser SDK generates events with associated metrics and attributes. Each RUM event has all default attributes, such as the page URL (view_url) and user information like device type (device_type) and country (geo_country). There are also additional metrics and attributes specific to a given event type. For example, the view_loading_time metric is associated with view events, while the resource_method attribute is associated with resource events.

Event Types

Event TypeRetentionDescription
Session30 daysA user session begins when a user starts browsing the web application. It contains high-level information about the user (browser, device, geolocation). It aggregates all RUM events collected during the user journey using a unique session_id attribute
View30 daysA view event is generated each time a user visits a page of the web application. While the user stays on the same page, resource, long task, error, and action events are linked to the related RUM view using the view_id attribute
Resource15 daysResource events are generated for images, XHR, Fetch, CSS, or JS libraries loaded on a webpage. They include detailed loading time information
Long Task15 daysLong task events are generated for any task in the browser that blocks the main thread for more than 50 milliseconds
Error30 daysRUM collects every frontend error emitted by the browser
Action30 daysRUM action events track user interactions during the user journey and can also be manually sent to monitor custom user actions
Sessions are reset after 15 minutes of inactivity.

Event Hierarchy

Event Hierarchy

Default Attributes

All RUM events contain the following default attributes:
AttributeTypeDescription
dateintegerEvent timestamp in milliseconds
typestringEvent type (e.g., session, view, resource, error, action)
servicestringService name that generated this event
application_idstringApplication ID that generated this event
session_idstringSession ID
view_idstringView ID
action_idstringUser action ID
contextobjectUser-defined context

Event-Specific Metrics and Attributes

Session Metrics

MetricTypeDescription
session_durationnumberSession duration in milliseconds
session_view_countnumberNumber of views in the session
session_action_countnumberNumber of user actions in the session
session_error_countnumberNumber of errors in the session
session_resource_countnumberNumber of resources in the session
session_long_task_countnumberNumber of long tasks in the session

Session Attributes

AttributeTypeDescription
session_typestringSession type (e.g., user, synthetic)
session_has_replaybooleanWhether session replay is enabled
session_is_activebooleanWhether the session is active
session_initial_view_idstringInitial view ID
session_initial_view_urlstringInitial view URL
session_initial_view_referrerstringReferrer URL of the initial view