Skip to content

Commit 8e5fa78

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 7729456 commit 8e5fa78

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
@@ -737,7 +737,7 @@ export const browserTracingIntegration = ((options: Partial<BrowserTracingOption
737737
registerInteractionListener(client, idleTimeout, finalTimeout, childSpanTimeout, latestRoute);
738738
}
739739

740-
if (enableInp && !spanStreamingEnabled) {
740+
if (enableInp && !hasSpanStreamingEnabled(client)) {
741741
registerInpInteractionListener();
742742
}
743743

0 commit comments

Comments
 (0)