feat: Always stream INP and remove standalone v1 spans#22517
Draft
logaretm wants to merge 1 commit into
Draft
Conversation
Contributor
size-limit report 📦
|
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
force-pushed
the
awad/inp-always-v2-span
branch
from
July 23, 2026 13:26
e956bd9 to
8fb2e6d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.