Skip to content

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

Draft
logaretm wants to merge 3 commits into
developfrom
awad/inp-always-v2-span
Draft

feat: Always stream INP and remove standalone v1 spans#22517
logaretm wants to merge 3 commits 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.

With INP moved over, it was the last user of the standalone v1 span mechanism, so this removes that mechanism entirely. Also dedupes the v2 SpanContainerItem construction that createStreamedSpanEnvelope and gen_ai span extraction had copied, into a shared createSpanContainerItem helper.

INP is now emitted through the v2 web vital span path regardless of the
`traceLifecycle` option: streamed when span streaming is enabled and sent as
a standalone span otherwise. This removes the last user of the v1 standalone
web vital path (`startTrackingINP` / `startStandaloneWebVitalSpan`), which is
deleted. Enrichment attributes (release, environment, user, replay/profile
ids, client address) that the standalone span used to attach are preserved
via a shared `getStandaloneWebVitalEnrichmentAttributes` helper.
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 27.79 kB +0.04% +10 B 🔺
@sentry/browser - with treeshaking flags 26.23 kB +0.05% +12 B 🔺
@sentry/browser (incl. Tracing) 47 kB +1.51% +696 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 47.22 kB -1.83% -876 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.73 kB +1.2% +610 B 🔺
@sentry/browser (incl. Tracing, Replay) 86.29 kB +0.84% +713 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.83 kB +0.81% +605 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 91 kB +0.8% +714 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 103.62 kB +0.66% +678 B 🔺
@sentry/browser (incl. Feedback) 44.98 kB +0.03% +11 B 🔺
@sentry/browser (incl. sendFeedback) 32.59 kB +0.04% +10 B 🔺
@sentry/browser (incl. FeedbackAsync) 37.65 kB +0.04% +13 B 🔺
@sentry/browser (incl. Metrics) 28.88 kB +0.04% +11 B 🔺
@sentry/browser (incl. Logs) 29.1 kB +0.04% +10 B 🔺
@sentry/browser (incl. Metrics & Logs) 29.81 kB +0.06% +17 B 🔺
@sentry/react 29.58 kB +0.04% +10 B 🔺
@sentry/react (incl. Tracing) 49.26 kB +1.36% +658 B 🔺
@sentry/vue 32.82 kB -1.17% -388 B 🔽
@sentry/vue (incl. Tracing) 48.94 kB +1.4% +673 B 🔺
@sentry/svelte 27.81 kB +0.04% +10 B 🔺
CDN Bundle 30.12 kB +0.02% +6 B 🔺
CDN Bundle (incl. Tracing) 47.46 kB -1.47% -708 B 🔽
CDN Bundle (incl. Logs, Metrics) 31.71 kB +0.04% +10 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 48.86 kB -1.27% -626 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 70.96 kB +0.01% +5 B 🔺
CDN Bundle (incl. Tracing, Replay) 85.06 kB -0.79% -670 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.44 kB -0.69% -595 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 90.86 kB -0.71% -649 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.2 kB -0.65% -595 B 🔽
CDN Bundle - uncompressed 89.78 kB +0.04% +27 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 142.43 kB -1.68% -2.42 kB 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.49 kB +0.03% +27 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.41 kB -1.63% -2.42 kB 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.25 kB +0.02% +27 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.7 kB -0.91% -2.39 kB 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.66 kB -0.9% -2.39 kB 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.4 kB -0.87% -2.39 kB 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.36 kB -0.85% -2.39 kB 🔽
@sentry/nextjs (client) 51.84 kB +1.42% +723 B 🔺
@sentry/sveltekit (client) 47.43 kB +1.5% +700 B 🔺
@sentry/core/server 79.65 kB -0.61% -484 B 🔽
@sentry/core/browser 51.48 kB -0.97% -504 B 🔽
@sentry/node 123.82 kB -0.36% -444 B 🔽
@sentry/node (incl. diagnostics channel injection) 149.33 kB -0.25% -369 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 70.03 kB - -
@sentry/node - without tracing 73.91 kB -0.71% -528 B 🔽
@sentry/aws-serverless 83.44 kB -0.58% -482 B 🔽
@sentry/cloudflare (withSentry) - minified 195 kB -0.84% -1.64 kB 🔽
@sentry/cloudflare (withSentry) 480.36 kB -0.74% -3.56 kB 🔽

View base workflow run

logaretm added 2 commits July 22, 2026 16:39
INP is now always emitted as a v2 web vital span. With span streaming enabled
it rides the streaming pipeline; with streaming disabled INP overrides the
static trace lifecycle for itself and still streams (it would otherwise be
dropped as a late child of the already-ended pageload span).

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

`createStreamedSpanEnvelope` and `extractGenAiSpansFromEvent` built the v2
`SpanContainerItem` (with the browser `ingest_settings`) identically. Extract a
shared `createSpanContainerItem` helper and use it in both.
@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
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