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-6799] Add delivery type property #233

Merged
merged 1 commit into from
Nov 28, 2024
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
4 changes: 4 additions & 0 deletions lib/cjs/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@ export declare type RumResourceEvent = CommonProperties & ActionChildProperties
* Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2')
*/
readonly protocol?: string;
/**
* Delivery type of the resource
*/
readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other';
/**
* The provider for this resource
*/
Expand Down
4 changes: 4 additions & 0 deletions lib/esm/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@ export declare type RumResourceEvent = CommonProperties & ActionChildProperties
* Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2')
*/
readonly protocol?: string;
/**
* Delivery type of the resource
*/
readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other';
/**
* The provider for this resource
*/
Expand Down
3 changes: 2 additions & 1 deletion samples/rum-events/resource.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"duration": 157090000,
"start": 88945000
},
"protocol": "HTTP/1.1"
"protocol": "HTTP/1.1",
"delivery_type": "cache"
},
"action": {
"id": "ae3a5d82-cdd1-468d-9bc9-3aa9e54d953c"
Expand Down
6 changes: 6 additions & 0 deletions schemas/rum/resource-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@
"description": "Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2')",
"readOnly": true
},
"delivery_type": {
"type": "string",
"description": "Delivery type of the resource",
"enum": ["cache", "navigational-prefetch", "other"],
"readOnly": true
},
"provider": {
"type": "object",
"description": "The provider for this resource",
Expand Down