Skip to content

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

Closed
sergical wants to merge 2 commits into
masterfrom
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 into
masterfrom
fix/nextjs-insights-tree-new-sdk-format

Conversation

@sergical

@sergicalsergical commented Apr 8, 2026

Copy link
Copy Markdown
Member

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@2xCleanShot 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-actionsgithub-actionsBot 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 ownersApril 8, 2026 01:47
Comment threadsrc/sentry/api/endpoints/organization_insights_tree.py
@sergicalsergical closed this Apr 8, 2026
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Apr 23, 2026
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: BackendAutomatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sergical@shellmayr