Skip to content

Commit

Permalink
Update packages/browser-utils/src/metrics/cls.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
  • Loading branch information
Lms24 and AbhiPrasad authored Sep 10, 2024
1 parent 8cafc05 commit 8d4151f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser-utils/src/metrics/cls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function sendStandaloneClsSpan(clsValue: number, entry: LayoutShift | undefined,
[SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]: clsValue,
});

// LayoutShift performance entries always have a duration of 0, so we don't need to add `enntry.duration` here
// LayoutShift performance entries always have a duration of 0, so we don't need to add `entry.duration` here
// see: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/duration
span?.end(startTime);
}
Expand Down

0 comments on commit 8d4151f

Please sign in to comment.