Skip to content

Commit b401c05

Browse files
committed
add comment
1 parent bbf6110 commit b401c05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/browser/src/tracing/browserTracingIntegration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
307307
// should wait for finish signal if it's a pageload transaction
308308
disableAutoFinish: isPageloadTransaction,
309309
beforeSpanEnd: span => {
310+
// This will generally always be defined here, because it is set in `setup()` of the integration
311+
// but technically, it is optional, so we guard here to be extra safe
310312
_collectWebVitals?.();
311313
addPerformanceEntries(span, { recordClsOnPageloadSpan: !enableStandaloneClsSpans });
312314
setActiveIdleSpan(client, undefined);

0 commit comments

Comments
 (0)