Requests
- traceparent on every fetch and XHR
- Same origin, or what you allow
- Joins the server trace
One plugin in main.ts. Every fetch and XHR links to the server trace it started. Page views come from vue-router, and errors Vue catches arrive with the component that threw them.
// main.ts createApp(App) .use(router) .use(WizeLens, { endpoint: "/_wizelens", router }) .mount("#app"); // server.ts (Node) app.use(wizelens.middleware);
Everything below lands in the same trace as the request that caused it.
Each error Vue catches carries the component that threw and its parents, so you know where it came from, not just the line.
"vue.component.trail": "App > Cart > PriceLine"WizeLens sets app.config.errorHandler and keeps the one your app already had. It still runs, right after WizeLens sends the error.
Pass your router and each finished navigation is a page view. Failed or cancelled navigations are left out.
Pass enabled: import.meta.env.DEV and WizeLens runs in development. Off, it is an instance that does nothing.
enabled: import.meta.env.DEVA Vue front end, a .NET gateway, a Node service, and a Python worker join the same trace, and the same insights run on all of it.