Skip to content
Open
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
40 changes: 40 additions & 0 deletions lib/cjs/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,10 @@ export declare type RumViewEvent = CommonProperties & ViewContainerSchema & Stre
* Duration in ns to the response start of the document request
*/
readonly first_byte?: number;
/**
* Reasons why the document was blocked from using the back/forward cache
*/
not_restored_reasons?: NotRestoredReasonsSchema;
/**
* User custom timings of the view. As timing name is used as facet path, it must contain only letters, digits, or the characters - _ . @ $
*/
Expand Down Expand Up @@ -1755,6 +1759,42 @@ export interface StreamSchema {
};
[k: string]: unknown;
}
/**
* Reasons why the document was blocked from using the back/forward cache
*/
export interface NotRestoredReasonsSchema {
/**
* Array of NotRestoredReasons objects for child iframes
*/
readonly children?: NotRestoredReasonsSchema[];
/**
* ID attribute value of the iframe
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Why ID attribute value and not just ID ?

*/
readonly id?: string | null;
/**
* Name attribute value of the iframe
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Same as ID, Why Name attribute value and not just Name ?

*/
readonly name?: string | null;
/**
* Array of reasons why the page was blocked from using bfcache
*/
readonly reasons?: {
/**
* The reason why the page was blocked
*/
readonly reason: string;
[k: string]: unknown;
}[] | null;
/**
* Source path of the iframe
*/
readonly src?: string | null;
/**
* URL of the navigated page or iframe
*/
readonly url?: string | null;
[k: string]: unknown;
}
/**
* Schema of properties for a technical performance metric
*/
Expand Down
40 changes: 40 additions & 0 deletions lib/esm/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,10 @@ export declare type RumViewEvent = CommonProperties & ViewContainerSchema & Stre
* Duration in ns to the response start of the document request
*/
readonly first_byte?: number;
/**
* Reasons why the document was blocked from using the back/forward cache
*/
not_restored_reasons?: NotRestoredReasonsSchema;
/**
* User custom timings of the view. As timing name is used as facet path, it must contain only letters, digits, or the characters - _ . @ $
*/
Expand Down Expand Up @@ -1755,6 +1759,42 @@ export interface StreamSchema {
};
[k: string]: unknown;
}
/**
* Reasons why the document was blocked from using the back/forward cache
*/
export interface NotRestoredReasonsSchema {
/**
* Array of NotRestoredReasons objects for child iframes
*/
readonly children?: NotRestoredReasonsSchema[];
/**
* ID attribute value of the iframe
*/
readonly id?: string | null;
/**
* Name attribute value of the iframe
*/
readonly name?: string | null;
/**
* Array of reasons why the page was blocked from using bfcache
*/
readonly reasons?: {
/**
* The reason why the page was blocked
*/
readonly reason: string;
[k: string]: unknown;
}[] | null;
/**
* Source path of the iframe
*/
readonly src?: string | null;
/**
* URL of the navigated page or iframe
*/
readonly url?: string | null;
[k: string]: unknown;
}
/**
* Schema of properties for a technical performance metric
*/
Expand Down
36 changes: 36 additions & 0 deletions samples/rum-events/view.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,42 @@
"dom_content_loaded": 951715000,
"dom_interactive": 906695000,
"load_event": 2154370000,
"not_restored_reasons": {
"children": [
{
"children": [],
"id": "iframe-1",
"name": "myFrame",
"reasons": null,
"src": "./frame.html",
"url": "https://example.com/frame.html"
},
{
"children": [],
"id": "iframe-2",
"name": "anotherFrame",
"reasons": [
{
"reason": "response-cache-control-no-store"
}
],
"src": "./another.html",
"url": "https://example.com/another.html"
}
],
"id": null,
"name": null,
"reasons": [
{
"reason": "unload-listener"
},
{
"reason": "beforeunload-listener"
}
],
"src": null,
"url": "https://app.datadoghq.com/rum/explorer?live=1h&query=&tab=view"
},
"interaction_to_next_paint": 20000000,
"interaction_to_next_paint_time": 20000000,
"interaction_to_next_paint_target_selector": "#foo",
Expand Down
55 changes: 55 additions & 0 deletions schemas/rum/_not-restored-reasons-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "rum/_not-restored-reasons-schema.json",
"title": "NotRestoredReasonsSchema",
"type": "object",
"description": "Reasons why the document was blocked from using the back/forward cache",
"properties": {
"children": {
"type": "array",
"description": "Array of NotRestoredReasons objects for child iframes",
"items": {
"$ref": "#"
},
"readOnly": true
},
"id": {
"type": ["string", "null"],
"description": "ID attribute value of the iframe",
"readOnly": true
},
"name": {
"type": ["string", "null"],
"description": "Name attribute value of the iframe",
"readOnly": true
},
"reasons": {
"type": ["array", "null"],
"description": "Array of reasons why the page was blocked from using bfcache",
"items": {
"type": "object",
"required": ["reason"],
"properties": {
"reason": {
"type": "string",
"description": "The reason why the page was blocked",
"readOnly": true
}
},
"readOnly": true
},
"readOnly": true
},
"src": {
"type": ["string", "null"],
"description": "Source path of the iframe",
"readOnly": true
},
"url": {
"type": ["string", "null"],
"description": "URL of the navigated page or iframe",
"readOnly": true
}
},
"readOnly": true
}
4 changes: 4 additions & 0 deletions schemas/rum/view-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@
"minimum": 0,
"readOnly": true
},
"not_restored_reasons": {
"description": "Reasons why the document was blocked from using the back/forward cache",
"allOf": [{ "$ref": "_not-restored-reasons-schema.json" }]
},
"custom_timings": {
"type": "object",
"description": "User custom timings of the view. As timing name is used as facet path, it must contain only letters, digits, or the characters - _ . @ $",
Expand Down