Skip to content

feat(react-router): Add client-side router instrumentation #16185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 5, 2025

Conversation

chargome
Copy link
Member

@chargome chargome commented May 2, 2025

  • Adds client-side instrumentation for react router's HydratedRouter (which is basically a DataRouter enhanced with ssr data)
    • Updates pageloads to have parameterized transaction names
    • Adds parameterized navigation payloads
  • Adds reactRouterTracingIntegration which needs to be used instead of browserTracingIntegration (this in turn inits the router instrumentation)
  • Logs a warning whenever browserTracingIntegration is used within this package

closes #16160

@chargome chargome self-assigned this May 2, 2025
@chargome chargome marked this pull request as ready for review May 4, 2025 14:05
@chargome chargome requested review from RulaKhaled and andreiborza May 4, 2025 19:23
@chargome chargome added the ci-codecov-ai-review AI Review by Codecov label May 4, 2025
@chargome chargome removed the ci-codecov-ai-review AI Review by Codecov label May 5, 2025
@chargome chargome merged commit 640b57f into develop May 5, 2025
153 checks passed
@chargome chargome deleted the cg-rr-instrument-hydrated-router branch May 5, 2025 09:17
@punkpeye
Copy link

Looks like documentation needs to be updated https://docs.sentry.io/platforms/javascript/guides/react-router/tracing/

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.

[RR7] Instrument client-side HydratedRouter
3 participants