Skip to content

feat(nuxt): Register a route provider outside the tracing guard - #23794

Draft
logaretm wants to merge 1 commit into
awad/route-provider-vue-appfrom
awad/route-provider-nuxt
Draft

feat(nuxt): Register a route provider outside the tracing guard#23794
logaretm wants to merge 1 commit into
awad/route-provider-vue-appfrom
awad/route-provider-nuxt

Conversation

@logaretm

Copy link
Copy Markdown
Member

Registers a route provider for Nuxt in the client plugin, outside the __SENTRY_TRACING__ guard.

Nuxt installs the router before its plugins run, so the plugin can read it straight off nuxtApp rather than waiting for a Vue app the way @sentry/vue has to. Reuses createVueRouteProvider from #23553's successor rather than reimplementing the vue-router resolve handling.

Because it sits outside the tracing guard, route parameterization survives when tracing is tree-shaken away.

Part of #23556

Nuxt installs the router before its plugins run, so the client plugin can read
it straight off `nuxtApp` rather than waiting for a Vue app the way
`@sentry/vue` does.

Registered outside the `__SENTRY_TRACING__` guard, so route parameterization
survives when tracing is tree-shaken away. Reuses `createVueRouteProvider`
rather than reimplementing the vue-router resolve handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant