Skip to content

Commit 86d1929

Browse files
logaretmclaude
andcommitted
fix(browser): Fix ReferenceError for spanStreamingEnabled in afterAllSetup
spanStreamingEnabled was declared in setup() but referenced in afterAllSetup(), a separate scope. Replace with inline hasSpanStreamingEnabled(client) call. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6c67fca commit 86d1929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/src/tracing/browserTracingIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ export const browserTracingIntegration = ((options: Partial<BrowserTracingOption
710710
registerInteractionListener(client, idleTimeout, finalTimeout, childSpanTimeout, latestRoute);
711711
}
712712

713-
if (enableInp && !spanStreamingEnabled) {
713+
if (enableInp && !hasSpanStreamingEnabled(client)) {
714714
registerInpInteractionListener();
715715
}
716716

0 commit comments

Comments
 (0)