Skip to content

Commit ee5bdab

Browse files
allow session to be undefined, change longtask enum
1 parent 3a30bf4 commit ee5bdab

8 files changed

Lines changed: 10 additions & 13 deletions

File tree

lib/cjs/generated/browserProfiling.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export interface ProfileEventAttributes {
7979
/**
8080
* Session properties.
8181
*/
82-
readonly session: {
82+
readonly session?: {
8383
/**
8484
* Session ID.
8585
*/
@@ -228,7 +228,7 @@ export interface RumProfilerLongTaskEntry {
228228
/**
229229
* Type of the event: long task or long animation frame
230230
*/
231-
readonly entryType: 'long-task' | 'long-animation-frame';
231+
readonly entryType: 'longtask' | 'long-animation-frame';
232232
startClocks: ClocksState;
233233
[k: string]: unknown;
234234
}

lib/cjs/generated/mobileProfiling.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export interface ProfileEventAttributes {
6868
/**
6969
* Session properties.
7070
*/
71-
readonly session: {
71+
readonly session?: {
7272
/**
7373
* Session ID.
7474
*/

lib/esm/generated/browserProfiling.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export interface ProfileEventAttributes {
7979
/**
8080
* Session properties.
8181
*/
82-
readonly session: {
82+
readonly session?: {
8383
/**
8484
* Session ID.
8585
*/
@@ -228,7 +228,7 @@ export interface RumProfilerLongTaskEntry {
228228
/**
229229
* Type of the event: long task or long animation frame
230230
*/
231-
readonly entryType: 'long-task' | 'long-animation-frame';
231+
readonly entryType: 'longtask' | 'long-animation-frame';
232232
startClocks: ClocksState;
233233
[k: string]: unknown;
234234
}

lib/esm/generated/mobileProfiling.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export interface ProfileEventAttributes {
6868
/**
6969
* Session properties.
7070
*/
71-
readonly session: {
71+
readonly session?: {
7272
/**
7373
* Session ID.
7474
*/

samples/profiling/profile-event-payload/profile-event-payload.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"application": {
44
"id": "a81f40b8-e9bd-4805-9b66-4e4edc529a14"
55
},
6-
"session": {
7-
"id": "e7521b8e-e369-4e78-a721-3139479c6ea6"
8-
},
96
"view": {
107
"id": ["9b1368a8-7f8d-4c3d-b0f6-bb51b5b399c0"],
118
"name": ["/"]
@@ -63,7 +60,7 @@
6360
{
6461
"id": "0e6071e2-e4ae-4605-8dfe-9f3551a172f9",
6562
"duration": 150,
66-
"entryType": "long-task",
63+
"entryType": "longtask",
6764
"startClocks": {
6865
"relative": 5000,
6966
"timeStamp": 1733146329886

samples/profiling/profiler-trace/rum-profiler-trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{
4141
"id": "c40cf35b-0495-4049-bf81-acf3f7578e55",
4242
"duration": 120000000,
43-
"entryType": "long-task",
43+
"entryType": "longtask",
4444
"startClocks": {
4545
"relative": 5000,
4646
"timeStamp": 1763719285000

schemas/profiling/long-task-entry-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"entryType": {
2121
"type": "string",
22-
"enum": ["long-task", "long-animation-frame"],
22+
"enum": ["longtask", "long-animation-frame"],
2323
"description": "Type of the event: long task or long animation frame",
2424
"readOnly": true
2525
},

schemas/profiling/profile-event-attributes-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"title": "ProfileEventAttributes",
55
"type": "object",
66
"description": "Schema of attributes for a Profile Event.",
7-
"required": ["application", "session"],
7+
"required": ["application"],
88
"properties": {
99
"application": {
1010
"type": "object",

0 commit comments

Comments
 (0)