Skip to content

Commit 5daf97f

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 0d40b7c commit 5daf97f

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

738-
if (enableInp) {
738+
if (enableInp && !spanStreamingEnabled) {
739739
registerInpInteractionListener();
740740
}
741741

0 commit comments

Comments
 (0)