We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d549967 commit 3f51a8bCopy full SHA for 3f51a8b
packages/browser-utils/src/metrics/cls.ts
@@ -90,7 +90,7 @@ export function trackClsAsStandaloneSpan(): void {
90
function sendStandaloneClsSpan(clsValue: number, entry: LayoutShift | undefined, pageloadSpanId: string) {
91
DEBUG_BUILD && logger.log(`Sending CLS span (${clsValue})`);
92
93
- const startTime = msToSec((browserPerformanceTimeOrigin() || 0) + ((entry?.startTime) || 0));
+ const startTime = msToSec((browserPerformanceTimeOrigin() || 0) + (entry?.startTime || 0));
94
const routeName = getCurrentScope().getScopeData().transactionName;
95
96
const name = entry ? htmlTreeAsString(entry.sources[0]?.node) : 'Layout shift';
0 commit comments