Skip to content

feat: Always stream INP and remove standalone v1 spans#22517

Draft
logaretm wants to merge 1 commit into
developfrom
awad/inp-always-v2-span
Draft

feat: Always stream INP and remove standalone v1 spans#22517
logaretm wants to merge 1 commit into
developfrom
awad/inp-always-v2-span

Conversation

@logaretm

@logaretm logaretm commented Jul 22, 2026

Copy link
Copy Markdown
Member

INP is now always emitted as a v2 web vital span. With span streaming enabled it rides the streaming pipeline as before. With span streaming disabled (traceLifecycle: 'static') INP overrides the static lifecycle for itself and still streams, because it reports late and would otherwise be dropped as a late child with nothing to carry it.

The bundle size increase is due to the bytes that now have to live in core without being tree-shaken which re-uses some of the stuff gen_ai uses to send out independent v2 spans. It's only a few bytes, the browser bundle savings are more significant.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.8 kB +0.05% +13 B 🔺
@sentry/browser - with treeshaking flags 26.24 kB +0.07% +17 B 🔺
@sentry/browser (incl. Tracing) 46.34 kB +0.06% +26 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 47.21 kB -1.83% -876 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.07 kB -0.09% -45 B 🔽
@sentry/browser (incl. Tracing, Replay) 85.65 kB +0.07% +59 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.32 kB +0.13% +92 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 90.34 kB +0.06% +51 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 102.99 kB +0.03% +22 B 🔺
@sentry/browser (incl. Feedback) 44.97 kB +0.03% +13 B 🔺
@sentry/browser (incl. sendFeedback) 32.6 kB +0.04% +11 B 🔺
@sentry/browser (incl. FeedbackAsync) 37.65 kB +0.03% +9 B 🔺
@sentry/browser (incl. Metrics) 28.89 kB +0.04% +11 B 🔺
@sentry/browser (incl. Logs) 29.12 kB +0.05% +13 B 🔺
@sentry/browser (incl. Metrics & Logs) 29.82 kB +0.07% +19 B 🔺
@sentry/react 29.6 kB +0.04% +11 B 🔺
@sentry/react (incl. Tracing) 48.64 kB +0.08% +36 B 🔺
@sentry/vue 32.85 kB -1.11% -367 B 🔽
@sentry/vue (incl. Tracing) 48.32 kB +0.08% +35 B 🔺
@sentry/svelte 27.82 kB +0.04% +11 B 🔺
CDN Bundle 30.12 kB +0.03% +9 B 🔺
CDN Bundle (incl. Tracing) 47.49 kB -1.4% -670 B 🔽
CDN Bundle (incl. Logs, Metrics) 31.7 kB +0.04% +12 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 48.89 kB -1.2% -592 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 70.96 kB +0.01% +4 B 🔺
CDN Bundle (incl. Tracing, Replay) 85.1 kB -0.74% -627 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.45 kB -0.67% -576 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 90.89 kB -0.67% -610 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.2 kB -0.63% -583 B 🔽
CDN Bundle - uncompressed 89.8 kB +0.04% +27 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 142.44 kB -1.68% -2.43 kB 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.51 kB +0.03% +27 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.42 kB -1.63% -2.43 kB 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.27 kB +0.02% +27 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.71 kB -0.91% -2.4 kB 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.67 kB -0.9% -2.4 kB 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.41 kB -0.87% -2.4 kB 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.37 kB -0.86% -2.4 kB 🔽
@sentry/nextjs (client) 51.2 kB +0.13% +63 B 🔺
@sentry/sveltekit (client) 46.78 kB +0.06% +24 B 🔺
@sentry/core/server 79.59 kB -0.74% -586 B 🔽
@sentry/core/browser 51.46 kB -1.02% -527 B 🔽
@sentry/node 124.18 kB -0.37% -456 B 🔽
@sentry/node (incl. diagnostics channel injection) 149.62 kB -0.29% -434 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 70.03 kB +0.01% +2 B 🔺
@sentry/node - without tracing 74.25 kB -0.7% -516 B 🔽
@sentry/aws-serverless 83.77 kB -0.59% -489 B 🔽
@sentry/cloudflare (withSentry) - minified 195 kB -0.84% -1.64 kB 🔽
@sentry/cloudflare (withSentry) 480.32 kB -0.74% -3.56 kB 🔽

View base workflow run

@logaretm logaretm changed the title feat(browser): Always send INP as a v2 web vital span feat: Always stream INP and remove standalone v1 spans Jul 22, 2026
INP is now always emitted as a v2 web vital span. With span streaming enabled it
rides the streaming pipeline; with streaming disabled it overrides the static
trace lifecycle for itself and still streams (sent directly via `captureSpan` +
`createStreamedSpanEnvelope`, since it is a single span per interaction), because
it reports late and would otherwise be dropped.

INP was the last user of the standalone v1 span mechanism, so that is removed
entirely: the `experimental.standalone` option, the `_isStandaloneSpan` handling
and self-send path in `SentrySpan`, the `createSpanEnvelope` wire format, and the
`SpanEnvelope`/`SpanItem` types and their exports from `@sentry/core` and
`@sentry/types`.

Also dedupes the v2 `SpanContainerItem` construction shared by
`createStreamedSpanEnvelope` and gen_ai span extraction into `createSpanContainerItem`.
@logaretm
logaretm force-pushed the awad/inp-always-v2-span branch from e956bd9 to 8fb2e6d Compare July 23, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant