Skip to content

Commit f81190d

Browse files
fix/skip CLS perf scrapping when value is 0
1 parent 011e5e4 commit f81190d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/browser/src/performance

packages/browser/src/performance/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ export class Performance {
8484
return;
8585
}
8686

87+
if (entry.value === 0) {
88+
return;
89+
}
90+
8791
const payload: BrowserPerformanceType = {
8892
event: entry.entryType,
8993
timestamp: utils.currentUnix(),

0 commit comments

Comments
 (0)