| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
size-limit report 📦
|
Sorry, something went wrong.
Labels routes through the same helper the navigation instrumentation uses, so a
route resolved by the provider can't disagree with the one on the span.
Handles both resolve shapes: Vue Router 3 returns `{ route }`, Vue Router 4+
returns the route itself.
| Back | FazBrowse Home | New Git URL |
Registers a route provider backed by Vue Router's own matcher.
The label logic moves into a shared getRouteLabel that the provider and the existing navigation instrumentation both use, so a resolved route can't drift from the one on the span. Vue Router 3 resolves to { route } while 4+ returns the route directly, so the provider discriminates on matched.
Matcher-backed rather than fed from beforeEach, because beforeEach is registered after the pageload span is already created. Resolving against the router means Vue is one of the SDKs that can name its pageload span at creation once the consumers land, instead of renaming it after the fact.
Part of #23556