Skip to content

[RR7] Instrument client-side HydratedRouter #16160

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

Open
chargome opened this issue Apr 29, 2025 · 0 comments
Open

[RR7] Instrument client-side HydratedRouter #16160

chargome opened this issue Apr 29, 2025 · 0 comments

Comments

@chargome
Copy link
Member

chargome commented Apr 29, 2025

Description

We need to instrument the client router of RR, since the browserTracingIntegration is only creating navigation spans by listening on popstate changes – which is way too late for our server instrumentation to make sense.

Current state with browserTracingIntegration:

Image

React Router in framework mode uses a HydratedRouter on the client.

This ticket is about finding out if we can reuse parts of our existing RR client-side instrumentation for this router and handle navigation timing correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants