From 97411974e69377bae2848f81657b77dbf2086c54 Mon Sep 17 00:00:00 2001 From: MoumitaM Date: Fri, 8 Nov 2024 12:43:58 +0530 Subject: [PATCH 1/3] chore: add event name in breadcrumb --- packages/analytics-js/src/components/core/Analytics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/analytics-js/src/components/core/Analytics.ts b/packages/analytics-js/src/components/core/Analytics.ts index ed6986769..39c8a5786 100644 --- a/packages/analytics-js/src/components/core/Analytics.ts +++ b/packages/analytics-js/src/components/core/Analytics.ts @@ -534,7 +534,7 @@ class Analytics implements IAnalytics { return; } - this.errorHandler.leaveBreadcrumb(`New ${type} event`); + this.errorHandler.leaveBreadcrumb(`New ${type} event ${payload.name}`); state.metrics.triggered.value += 1; this.eventManager?.addEvent({ From a0fa79db4832806bdb3bb4762e98b3f43db84d22 Mon Sep 17 00:00:00 2001 From: Moumita <36885121+MoumitaM@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:55:11 +0530 Subject: [PATCH 2/3] chore: minor formatting in breadcrumb string Co-authored-by: Sai Kumar Battinoju <88789928+saikumarrs@users.noreply.github.com> --- packages/analytics-js/src/components/core/Analytics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/analytics-js/src/components/core/Analytics.ts b/packages/analytics-js/src/components/core/Analytics.ts index 39c8a5786..8421dda6c 100644 --- a/packages/analytics-js/src/components/core/Analytics.ts +++ b/packages/analytics-js/src/components/core/Analytics.ts @@ -534,7 +534,7 @@ class Analytics implements IAnalytics { return; } - this.errorHandler.leaveBreadcrumb(`New ${type} event ${payload.name}`); + this.errorHandler.leaveBreadcrumb(`New ${type} event - ${payload.name}`); state.metrics.triggered.value += 1; this.eventManager?.addEvent({ From 72e1df54a5118d61bd9c7e3b2dbe5373520cc26a Mon Sep 17 00:00:00 2001 From: MoumitaM Date: Fri, 8 Nov 2024 14:07:15 +0530 Subject: [PATCH 3/3] chore: size limit updated --- packages/analytics-js/.size-limit.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/analytics-js/.size-limit.mjs b/packages/analytics-js/.size-limit.mjs index b00246486..3ac516c9a 100644 --- a/packages/analytics-js/.size-limit.mjs +++ b/packages/analytics-js/.size-limit.mjs @@ -83,7 +83,7 @@ export default [ name: 'Core (Bundled) - Modern - NPM (UMD)', path: 'dist/npm/modern/bundled/umd/index.js', import: '*', - limit: '39.5 KiB', + limit: '40 KiB', }, { name: 'Core (Content Script) - Legacy - NPM (ESM)', @@ -107,7 +107,7 @@ export default [ name: 'Core (Content Script) - Modern - NPM (ESM)', path: 'dist/npm/modern/content-script/esm/index.mjs', import: '*', - limit: '39 KiB', + limit: '39.5 KiB', }, { name: 'Core (Content Script) - Modern - NPM (CJS)',