feat(react-router): Clean up bogus `*` http.route attribute on segment spans by nicohrubec · Pull Request #20471 · getsentry/sentry-javascript · GitHub
Skip to content

feat(react-router): Clean up bogus * http.route attribute on segment spans#20471

Open
nicohrubec wants to merge 2 commits intodevelopfrom
nh/span-streaming-reactrouterserverintegration
Open

feat(react-router): Clean up bogus * http.route attribute on segment spans#20471
nicohrubec wants to merge 2 commits intodevelopfrom
nh/span-streaming-reactrouterserverintegration

Conversation

@nicohrubec
Copy link
Copy Markdown
Member

@nicohrubec nicohrubec commented Apr 23, 2026

In span-streaming mode, the existing processEvent cleanup of bogus * http.route attributes doesn't run, so segment spans end up with the garbage route. Ports the same logic to the processSegmentSpan hook.

Added unit tests for this (also for the event path), since the alternative would have been to add a separate streaming e2e test for react-router, which seems overkill to me.

Closes #20361

@github-actions
Copy link
Copy Markdown
Contributor

@nicohrubec nicohrubec changed the title Nh/span streaming reactrouterserverintegration feat(react-router): Clean up bogus * http.route attribute on segment spans Apr 24, 2026
@nicohrubec nicohrubec marked this pull request as ready for review April 24, 2026 07:54
@nicohrubec nicohrubec requested review from chargome and mydea April 24, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Event processor migration: reactRouterServerIntegration bogus * routes filter

2 participants