Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUM-7110 Add the OOB mobile view loading metrics properties #229

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 from the moment the view was started until all the initial network requests settled
*/
readonly network_settled_time?: number;
/**
* Duration in ns to from the last interaction on previous view to the moment the current view was displayed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Duration in ns to from the last interaction on previous view to the moment the current view was displayed
* Duration in ns from the last interaction on previous view to the moment the current view was 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 from the moment the view was started until all the initial network requests settled
*/
readonly network_settled_time?: number;
/**
* Duration in ns to from the last interaction on previous view to the moment the current view was 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 from the moment the view was started until all the initial network requests 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 current view was displayed",
"minimum": 0,
"readOnly": true
},
"loading_type": {
"type": "string",
"description": "Type of the loading of the view",
Expand Down
Loading