Skip to content

Commit be3aec0

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 766ad04 commit be3aec0

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
@@ -709,7 +709,7 @@ export const browserTracingIntegration = ((options: Partial<BrowserTracingOption
709709
registerInteractionListener(client, idleTimeout, finalTimeout, childSpanTimeout, latestRoute);
710710
}
711711

712-
if (enableInp) {
712+
if (enableInp && !spanStreamingEnabled) {
713713
registerInpInteractionListener();
714714
}
715715

0 commit comments

Comments
 (0)