Skip to content

Commit 8749916

Browse files
✨[PANA-5288] Update rum-events-format to pull in BrowserChangeRecord (#4035)
1 parent cb8a95e commit 8749916

File tree

6 files changed

+333
-22
lines changed

6 files changed

+333
-22
lines changed

packages/core/src/domain/telemetry/telemetryEvent.types.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,18 @@ export interface CommonTelemetryProperties {
640640
* Model of the device
641641
*/
642642
model?: string
643+
/**
644+
* Number of device processors
645+
*/
646+
readonly processor_count?: number
647+
/**
648+
* Total RAM in megabytes
649+
*/
650+
readonly total_ram?: number
651+
/**
652+
* Whether the device is considered a low RAM device (Android)
653+
*/
654+
readonly is_low_ram_device?: boolean
643655
[k: string]: unknown
644656
}
645657
/**

packages/rum-core/src/rumEvent.types.ts

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export type RumActionEvent = CommonProperties &
104104
/**
105105
* View properties
106106
*/
107-
readonly view: {
107+
readonly view?: {
108108
/**
109109
* Is the action starting in the foreground (focus in browser)
110110
*/
@@ -175,9 +175,6 @@ export type RumTransitionEvent = CommonProperties & {
175175
* RUM event type
176176
*/
177177
readonly type: 'transition'
178-
view: {
179-
[k: string]: unknown
180-
}
181178
/**
182179
* Stream properties
183180
*/
@@ -482,7 +479,7 @@ export type RumErrorEvent = CommonProperties &
482479
/**
483480
* View properties
484481
*/
485-
readonly view: {
482+
readonly view?: {
486483
/**
487484
* Is the error starting in the foreground (focus in browser)
488485
*/
@@ -507,9 +504,6 @@ export type RumLongTaskEvent = CommonProperties &
507504
* RUM event type
508505
*/
509506
readonly type: 'long_task'
510-
view: {
511-
[k: string]: unknown
512-
}
513507
/**
514508
* Long Task properties
515509
*/
@@ -634,9 +628,6 @@ export type RumResourceEvent = CommonProperties &
634628
* RUM event type
635629
*/
636630
readonly type: 'resource'
637-
view: {
638-
[k: string]: unknown
639-
}
640631
/**
641632
* Resource properties
642633
*/
@@ -841,7 +832,7 @@ export type RumResourceEvent = CommonProperties &
841832
/**
842833
* Type of the GraphQL operation
843834
*/
844-
readonly operationType: 'query' | 'mutation' | 'subscription'
835+
readonly operationType?: 'query' | 'mutation' | 'subscription'
845836
/**
846837
* Name of the GraphQL operation
847838
*/
@@ -1329,13 +1320,10 @@ export type RumVitalEvent = RumVitalDurationEvent | RumVitalOperationStepEvent
13291320
* Schema for a duration vital event.
13301321
*/
13311322
export type RumVitalDurationEvent = RumVitalEventCommonProperties & {
1332-
view: {
1333-
[k: string]: unknown
1334-
}
13351323
/**
13361324
* Vital properties
13371325
*/
1338-
readonly vital: {
1326+
readonly vital?: {
13391327
/**
13401328
* Type of the vital.
13411329
*/
@@ -1381,13 +1369,10 @@ export type RumVitalEventCommonProperties = CommonProperties &
13811369
* Schema for a vital operation step event.
13821370
*/
13831371
export type RumVitalOperationStepEvent = RumVitalEventCommonProperties & {
1384-
view: {
1385-
[k: string]: unknown
1386-
}
13871372
/**
13881373
* Vital properties
13891374
*/
1390-
readonly vital: {
1375+
readonly vital?: {
13911376
/**
13921377
* Type of the vital.
13931378
*/
@@ -1484,7 +1469,7 @@ export interface CommonProperties {
14841469
/**
14851470
* View properties
14861471
*/
1487-
readonly view?: {
1472+
readonly view: {
14881473
/**
14891474
* UUID of the view
14901475
*/
@@ -1699,6 +1684,18 @@ export interface CommonProperties {
16991684
* Current screen brightness level (0.0 to 1.0).
17001685
*/
17011686
readonly brightness_level?: number
1687+
/**
1688+
* Number of device processors
1689+
*/
1690+
readonly processor_count?: number
1691+
/**
1692+
* Total RAM in megabytes
1693+
*/
1694+
readonly total_ram?: number
1695+
/**
1696+
* Whether the device is considered a low RAM device (Android)
1697+
*/
1698+
readonly is_low_ram_device?: boolean
17021699
[k: string]: unknown
17031700
}
17041701
/**

0 commit comments

Comments
 (0)