Skip to content

Commit

Permalink
add content type property
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanGaignault committed Nov 5, 2024
1 parent e1c6dde commit f9a363e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/cjs/generated/rum.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ export declare type RumResourceEvent = CommonProperties & ActionChildProperties
* Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2')
*/
readonly protocol?: string;
/**
* Content type of the fetched resource
*/
readonly content_type?: string;
/**
* 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 @@ -651,6 +651,10 @@ export declare type RumResourceEvent = CommonProperties & ActionChildProperties
* Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2')
*/
readonly protocol?: string;
/**
* Content type of the fetched resource
*/
readonly content_type?: string;
/**
* 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 @@ -34,7 +34,8 @@
"duration": 157090000,
"start": 88945000
},
"protocol": "HTTP/1.1"
"protocol": "HTTP/1.1",
"content_type": "application/json"
},
"action": {
"id": "ae3a5d82-cdd1-468d-9bc9-3aa9e54d953c"
Expand Down
5 changes: 5 additions & 0 deletions schemas/rum/resource-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@
"description": "Network protocol used to fetch the resource (e.g., 'http/1.1', 'h2')",
"readOnly": true
},
"content_type": {
"type": "string",
"description": "Content type of the fetched resource",
"readOnly": true
},
"provider": {
"type": "object",
"description": "The provider for this resource",
Expand Down

0 comments on commit f9a363e

Please sign in to comment.