Skip to content

Commit e6adb6b

Browse files
committed
Add content_type to resource schema
1 parent 6ded6e4 commit e6adb6b

5 files changed

Lines changed: 15 additions & 0 deletions

File tree

lib/cjs/generated/rum.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,10 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo
735735
* Delivery type of the resource
736736
*/
737737
readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other';
738+
/**
739+
* Content type of the resource
740+
*/
741+
readonly content_type?: string;
738742
/**
739743
* The provider for this resource
740744
*/

lib/esm/generated/rum.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,10 @@ export type RumResourceEvent = CommonProperties & ActionChildProperties & ViewCo
735735
* Delivery type of the resource
736736
*/
737737
readonly delivery_type?: 'cache' | 'navigational-prefetch' | 'other';
738+
/**
739+
* Content type of the resource
740+
*/
741+
readonly content_type?: string;
738742
/**
739743
* The provider for this resource
740744
*/

samples/rum-events/resource-graphql.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"render_blocking_status": "non-blocking",
2929
"protocol": "HTTP/1.1",
3030
"delivery_type": "cache",
31+
"content_type": "application/json",
3132
"graphql": {
3233
"operationType": "query",
3334
"operationName": "GetUserProfile",

samples/rum-events/resource.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
},
4141
"protocol": "HTTP/1.1",
4242
"delivery_type": "cache",
43+
"content_type": "application/json",
4344
"request": {
4445
"encoded_body_size": 512,
4546
"decoded_body_size": 1024,

schemas/rum/resource-schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@
244244
"enum": ["cache", "navigational-prefetch", "other"],
245245
"readOnly": true
246246
},
247+
"content_type": {
248+
"type": "string",
249+
"description": "Content type of the resource",
250+
"readOnly": true
251+
},
247252
"provider": {
248253
"type": "object",
249254
"description": "The provider for this resource",

0 commit comments

Comments
 (0)