getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.68k stars 1.49k forks source link

fix(react): Fix react router v4/v5 instrumentation #11855

Closed mydea closed 2 weeks ago

mydea commented 2 weeks ago

Turns out we were not correctly setting parametrized route names for react router v4/v5 😬 We had no proper test covering this.

So I added a new E2E test react-router-5 that actually checks that parametrization etc. works as expected.

Fixes https://github.com/getsentry/sentry-javascript/issues/11815