Skip to content

Commit 4bf129b

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 0e19b37 commit 4bf129b

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

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

0 commit comments

Comments
 (0)