Generate parameterized version of URL or full path list
mishkamishka47 opened this issue · comments
I've been setting up Sentry for an application and one area that's been a challenge is capturing performance data. Our paths almost all use route params, and we need to be able to merge any load events for a parameterized route. In other words, given navigation events to the routes /collection/foo
and /collection/bar
, I need to be able to turn those both into /collection/:collectionId
, so that instrumentation data can be grouped under the generic route rather than there being a separate entry for every collectionId
that shows up in the URL.
Is there any way to do this with the existing API? At the very least, being able to output a list of all of the configured routes would help, so we could test them one by one with match
. I'm trying to avoid a scenario where we have to maintain a list of all of the application's routes on our own.
Thanks!