sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Fixes latest route name and source not updating correctly

Open edwardgou-sentry opened this issue 1 year ago • 2 comments

latestRouteName and latestRouteSource are immutable strings, so handlers that use these strings do not get the proper latest values when a route update occurs. This update puts the route name and source in an object. Fixes an issue with interaction transactions always using the first pageload transaction route name even though the user has navigated away from the first route name.

edwardgou-sentry avatar Feb 16 '24 21:02 edwardgou-sentry

Planning to use this as a route name tag on inp spans.

edwardgou-sentry avatar Feb 16 '24 21:02 edwardgou-sentry

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 78.43 KB (0%)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.66 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 73.6 KB (0%)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 63.28 KB (0%)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.62 KB (0%)
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 33.54 KB (+0.08% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.38 KB (0%)
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.39 KB (0%)
@sentry/browser - Webpack (gzipped) 22.66 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 76.72 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 68.21 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 34.03 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped) 25.05 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 214.99 KB (0%)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 102.78 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 75.08 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 37.19 KB (0%)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 70.03 KB (0%)
@sentry/react - Webpack (gzipped) 22.69 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 87.75 KB (+0.06% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 51.95 KB (+0.09% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 17.24 KB (0%)

github-actions[bot] avatar Feb 16 '24 21:02 github-actions[bot]