You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Span streaming: a child span keeps an old sentry.segment.name when the root span is renamed after the child ends #26080
All three spans have the segment name GET /users/:id, the root span's final name.
Actual result
early child -> segment: GET
late child -> segment: GET /users/:id
GET /users/:id -> segment: GET /users/:id
Additional context
Each span copies the root span's name when the span is captured. If the root span is renamed later, the spans captured before the rename keep the old name.
In Next.js this happens on every page request. With span streaming on, serverSpanHooks.js renames the root span to the method ("GET") when it starts. The route is added only when a span with next.route starts. Spans that end before then (for example resolve page server component) have the segment name GET, so a search for GET /history doesn't find them.
Activity
linear-code commentedon Nov 4, 2026
JS-4061
chargome commentedon Nov 6, 2026
@xh123637 thank you, but we'll fix this internally
fix(core): Use the final segment span name for streamed spans that en…
github-actions commentedon Nov 10, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #26178, which was included in the 11.12.0 release.