Trace upload: include experimental flag states#89845
Merged
Merged
Conversation
This includes the set of experimental flag states in events sent to the trace upload receiver when `--experimental-trace-upload` is set. It only includes a subset of experimental flags (so things like the trace upload flag itself isn't meaninglessly sent). Since reporting is often limited to the scope of a single span, the flag state attributes are denormalized and copied onto every descendent span. Limiting the set of flags prevents this from being unnecessarily large. Test Plan: Added `test/development` test and built an app and verified these tags are sent with `NEXT_TRACE_UPLOAD_DEBUG`
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
Contributor
Tests Passed |
Contributor
Stats from current PR🟢 1 improvement
📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles: **437 kB** → **437 kB** ✅ -10 B81 files with content-based hashes (individual files not comparable between builds) Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📝 Changed Files (17 files)Files with changes:
View diffsapp-page-exp..ntime.dev.jsfailed to diffapp-page-exp..time.prod.jsDiff too large to display app-page-tur..ntime.dev.jsfailed to diffapp-page-tur..time.prod.jsfailed to diffapp-page-tur..ntime.dev.jsfailed to diffapp-page-tur..time.prod.jsDiff too large to display app-page.runtime.dev.jsfailed to diffapp-page.runtime.prod.jsDiff too large to display app-route-ex..ntime.dev.jsDiff too large to display app-route-ex..time.prod.jsDiff too large to display app-route-tu..ntime.dev.jsDiff too large to display app-route-tu..time.prod.jsDiff too large to display app-route-tu..ntime.dev.jsDiff too large to display app-route-tu..time.prod.jsDiff too large to display app-route.runtime.dev.jsDiff too large to display app-route.ru..time.prod.jsDiff too large to display server.runtime.prod.jsDiff too large to display |
2a02a5e to
a2ab41c
Compare
Co-authored-by: Luke Sandberg <lukesandberg@users.noreply.github.com>
7190b37 to
9011716
Compare
9011716 to
d11bb67
Compare
d11bb67 to
6869c92
Compare
lukesandberg
approved these changes
Feb 12, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This includes the set of experimental flag states in events sent to the trace upload receiver when
--experimental-trace-uploadis set. It only includes a subset of experimental flags (so things like the trace upload flag itself isn't meaninglessly sent).Since reporting is often limited to the scope of a single span, the flag state attributes are denormalized and copied onto every descendent span. Limiting the set of flags prevents this from being unnecessarily large.
Test Plan: Added
test/developmenttest and built an app and verified these tags are sent withNEXT_TRACE_UPLOAD_DEBUG