Skip to content

Commit 739fcf4

Browse files
logaretmclaude
andcommitted
fix(browser): Skip INP interaction listeners when span streaming is enabled
The streamed INP path does not use INTERACTIONS_SPAN_MAP or ELEMENT_NAME_TIMESTAMP_MAP, so registering the listeners is unnecessary overhead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 211790f commit 739fcf4

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) {
739+
if (enableInp && !spanStreamingEnabled) {
740740
registerInpInteractionListener();
741741
}
742742

0 commit comments

Comments
 (0)