Skip to content

Commit 3fb49d1

Browse files
committed
remove accidental onSpanEnd hook
1 parent 4b7a123 commit 3fb49d1

File tree

1 file changed

+0
-7
lines changed
  • packages/browser-utils/src/metrics

1 file changed

+0
-7
lines changed

packages/browser-utils/src/metrics/utils.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,6 @@ export function listenForWebVitalReportEvents(
238238
}
239239
});
240240

241-
client.on('spanEnd', span => {
242-
const spanJSON = spanToJSON(span);
243-
if (spanJSON.op === 'pageload') {
244-
pageloadSpanId = span.spanContext().spanId;
245-
}
246-
});
247-
248241
const activeSpan = getActiveSpan();
249242
if (activeSpan) {
250243
const rootSpan = getRootSpan(activeSpan);

0 commit comments

Comments
 (0)