From b83dc023613a7503e96b65419c05c5dac0ec61f6 Mon Sep 17 00:00:00 2001 From: Marius Constantin Date: Wed, 13 Nov 2024 12:24:55 +0100 Subject: [PATCH] RUM-7110 Add the OOB mobile view loading metrics properties --- lib/cjs/generated/rum.d.ts | 8 ++++++++ lib/esm/generated/rum.d.ts | 8 ++++++++ samples/rum-events/view.json | 2 ++ schemas/rum/view-schema.json | 12 ++++++++++++ 4 files changed, 30 insertions(+) diff --git a/lib/cjs/generated/rum.d.ts b/lib/cjs/generated/rum.d.ts index 4cdb48d..67518be 100644 --- a/lib/cjs/generated/rum.d.ts +++ b/lib/cjs/generated/rum.d.ts @@ -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 */ diff --git a/lib/esm/generated/rum.d.ts b/lib/esm/generated/rum.d.ts index 4cdb48d..67518be 100644 --- a/lib/esm/generated/rum.d.ts +++ b/lib/esm/generated/rum.d.ts @@ -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 */ diff --git a/samples/rum-events/view.json b/samples/rum-events/view.json index 3bf7100..7c6d912 100644 --- a/samples/rum-events/view.json +++ b/samples/rum-events/view.json @@ -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, diff --git a/schemas/rum/view-schema.json b/schemas/rum/view-schema.json index 8565ab2..209f8b7 100644 --- a/schemas/rum/view-schema.json +++ b/schemas/rum/view-schema.json @@ -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",