Skip to content

Commit

Permalink
chore: add event name in breadcrumb (#1912)
Browse files Browse the repository at this point in the history
* chore: add event name in breadcrumb

* chore: minor formatting in breadcrumb string

Co-authored-by: Sai Kumar Battinoju <[email protected]>

* chore: size limit updated

---------

Co-authored-by: Sai Kumar Battinoju <[email protected]>
  • Loading branch information
MoumitaM and saikumarrs authored Nov 8, 2024
1 parent 9fbaf81 commit 3f877ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/analytics-js/.size-limit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand All @@ -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)',
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics-js/src/components/core/Analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 3f877ee

Please sign in to comment.