Skip to content

Commit

Permalink
RUM-7110 Add the OOB mobile view loading metrics properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusc83 committed Nov 13, 2024
1 parent ea640b5 commit b83dc02
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/cjs/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,14 @@ export declare type RumViewEvent = CommonProperties & ViewContainerSchema & {
* Duration in ns to the view is considered loaded
*/
readonly loading_time?: number;
/**
* Duration in ns when the initial network requests in the current view are considered settled
*/
readonly network_settled_time?: number;
/**
* Duration in ns to from the last interaction on previous view to the moment the next view is displayed
*/
readonly interaction_to_next_view_time?: number;
/**
* Type of the loading of the view
*/
Expand Down
8 changes: 8 additions & 0 deletions lib/esm/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,14 @@ export declare type RumViewEvent = CommonProperties & ViewContainerSchema & {
* Duration in ns to the view is considered loaded
*/
readonly loading_time?: number;
/**
* Duration in ns when the initial network requests in the current view are considered settled
*/
readonly network_settled_time?: number;
/**
* Duration in ns to from the last interaction on previous view to the moment the next view is displayed
*/
readonly interaction_to_next_view_time?: number;
/**
* Type of the loading of the view
*/
Expand Down
2 changes: 2 additions & 0 deletions samples/rum-events/view.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"referrer": "",
"url": "https://app.datadoghq.com/rum/explorer?live=1h&query=&tab=view",
"loading_time": 4115295000,
"network_settled_time": 10000,
"interaction_to_next_view_time": 20000,
"loading_type": "initial_load",
"time_spent": 245512755000,
"first_contentful_paint": 420725000,
Expand Down
12 changes: 12 additions & 0 deletions schemas/rum/view-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@
"minimum": 0,
"readOnly": true
},
"network_settled_time": {
"type": "integer",
"description": "Duration in ns when the initial network requests in the current view are considered settled",
"minimum": 0,
"readOnly": true
},
"interaction_to_next_view_time": {
"type": "integer",
"description": "Duration in ns to from the last interaction on previous view to the moment the next view is displayed",
"minimum": 0,
"readOnly": true
},
"loading_type": {
"type": "string",
"description": "Type of the loading of the view",
Expand Down

0 comments on commit b83dc02

Please sign in to comment.