From cceb0e72e05f19b28a3d6bf96fc4c7f192652208 Mon Sep 17 00:00:00 2001 From: Aymeric Mortemousque Date: Fri, 11 Jun 2021 12:10:43 +0200 Subject: [PATCH] Update rum event format --- packages/rum-core/src/rumEvent.types.ts | 28 +++++++++++++++++++++++++ rum-events-format | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/packages/rum-core/src/rumEvent.types.ts b/packages/rum-core/src/rumEvent.types.ts index 1126de850c..f7c63b40f6 100644 --- a/packages/rum-core/src/rumEvent.types.ts +++ b/packages/rum-core/src/rumEvent.types.ts @@ -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 */ @@ -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 } /** diff --git a/rum-events-format b/rum-events-format index 8a0a90c5ff..b25f4af81b 160000 --- a/rum-events-format +++ b/rum-events-format @@ -1 +1 @@ -Subproject commit 8a0a90c5ffa020b56b62d89c78dc70420981c712 +Subproject commit b25f4af81b4ec69d6da3553dc853ffdba14cd5ea