request insights: derive request history and fetch data (2/5)#93975
Conversation
Tests PassedCommit: 6e9860e |
aa67146 to
d704eca
Compare
09e3816 to
c8779dc
Compare
d704eca to
c869f76
Compare
Stats from current PR🔴 1 regression, 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
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 (20 files)Files with changes:
View diffsapp-page-exp..ntime.dev.jsfailed to diffapp-page-exp..time.prod.jsfailed to diffapp-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.jsfailed to diffapp-page.runtime.dev.jsfailed to diffapp-page.runtime.prod.jsfailed to diffapp-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 pages-api-tu..ntime.dev.jsDiff too large to display pages-api.runtime.dev.jsDiff too large to display pages-turbo...ntime.dev.jsDiff too large to display pages.runtime.dev.jsDiff too large to display 📎 Tarball URLCommit: 6e9860e |
c869f76 to
92c79b6
Compare
c8779dc to
4cc9c25
Compare
92c79b6 to
b0b9396
Compare
3f01826 to
129f119
Compare
29d07a5 to
56ce019
Compare
| const SENSITIVE_PARAM_NAME_RE = | ||
| /(?:^|[_-])(?:access[_-]?token|api[_-]?key|auth|authorization|code|cookie|credential|id[_-]?token|jwt|key|password|secret|session|signature|sig|token)(?:$|[_-])/i |
There was a problem hiding this comment.
This looks overly specific? it would block access-token but not accesstoken?
I'd just do "contains any of these"?
There was a problem hiding this comment.
Let's keep it as-is and verify if it's even relevant first by dogfooding the tab. I suspect it's not needed to even have this filter.
129f119 to
d63e2ea
Compare
2c81fa9 to
0a993aa
Compare
3a050d0 to
cb02682
Compare
0a993aa to
633b1bd
Compare
cb02682 to
b2ffb8f
Compare
633b1bd to
56c3d97
Compare
Adds bounded request insight aggregation from local framework spans and fetch metrics, including fetch timing, method, URL, status, cache status, cache reason, fetch index, span trace identity, events, links, and dedupe between span-derived and metric-derived fetch entries. Verification: - pnpm jest packages/next/src/server/lib/trace/request-insights.test.ts packages/next/src/server/lib/patch-fetch.test.ts --runInBand - pnpm --filter=next types
b2ffb8f to
6421469
Compare
56c3d97 to
b5fb280
Compare
What
Builds the bounded request history store on top of local spans and fetch metrics. Request Insights now keeps the last 100 requests, dedupes fetch records, and preserves raw span details for later verbose consumers.
Stack:
Review Focus
AppRender.fetchspans.Proof In This PR
pnpm jest packages/next/src/server/lib/trace/request-insights.test.ts packages/next/src/server/lib/patch-fetch.test.ts --runInBandpnpm --filter=next typesDeferred Coverage