Skip to content

Commit

Permalink
Update rum event format
Browse files Browse the repository at this point in the history
  • Loading branch information
amortemousque committed Jun 11, 2021
1 parent 85bf8f5 commit cceb0e7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions packages/rum-core/src/rumEvent.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ export type RumErrorEvent = CommonProperties & {
* The type of the error
*/
readonly type?: string
/**
* Whether the error has been handled manually in the source code or not
*/
readonly handling?: 'handled' | 'unhandled'
/**
* Resource properties of the error
*/
Expand Down Expand Up @@ -565,6 +569,30 @@ export type RumViewEvent = CommonProperties & {
readonly duration: number
[k: string]: unknown
}[]
/**
* Average memory used during the view lifetime (in bytes)
*/
readonly memory_average?: number
/**
* Peak memory used during the view lifetime (in bytes)
*/
readonly memory_max?: number
/**
* Total number of cpu ticks during the view’s lifetime
*/
readonly cpu_ticks_count?: number
/**
* Average number of cpu ticks per second during the view’s lifetime
*/
readonly cpu_ticks_per_second?: number
/**
* Average refresh rate during the view’s lifetime (in frames per second)
*/
readonly refresh_rate_average?: number
/**
* Minimum refresh rate during the view’s lifetime (in frames per second)
*/
readonly refresh_rate_min?: number
[k: string]: unknown
}
/**
Expand Down
2 changes: 1 addition & 1 deletion rum-events-format

0 comments on commit cceb0e7

Please sign in to comment.