Skip to content

fix(nextjs-insights): Support new SDK span description format in SSR File Tree#112444

Closed
sergical wants to merge 2 commits intomasterfrom
fix/nextjs-insights-tree-new-sdk-format
Closed

fix(nextjs-insights): Support new SDK span description format in SSR File Tree#112444
sergical wants to merge 2 commits intomasterfrom
fix/nextjs-insights-tree-new-sdk-format

Conversation

@sergical
Copy link
Copy Markdown
Member

@sergical sergical commented Apr 8, 2026

Summary

  • The Next.js SDK >= 10.32.0 (PR #18408) changed function.nextjs span descriptions from Page Server Component (/route) to resolve page server component "/route"
  • The tree endpoint regex only matched the old format, causing the SSR File Tree widget to render empty for all customers on the new SDK
  • Add a second regex pattern to handle the new format and normalize both to the same component_type + path output
  • Verified against real prod data from docs (both formats) and webvitals (new format only) projects
Before (for webvitals project inside sentry) After
CleanShot 2026-04-07 at 21 42 05@2x CleanShot 2026-04-07 at 21 38 30@2x

…File Tree

The Next.js SDK >= 10.32.0 changed span descriptions for function.nextjs
spans from `Page Server Component (/route)` to
`resolve page server component "/route"`. The tree endpoint regex only
matched the old format, causing the SSR File Tree widget to be empty.

Add a second regex pattern to handle the new format and normalize both
to the same component_type + path output.
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 8, 2026
@sergical sergical marked this pull request as ready for review April 8, 2026 01:47
@sergical sergical requested review from a team as code owners April 8, 2026 01:47
@sergical sergical closed this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants