Skip to content

Vue SDK doesn't create root application loading span in Vue 3 apps  #5910

@Lms24

Description

@Lms24

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/vue

SDK Version

7.14.2

Framework Version

Vue 3

Link to Sentry event

No response

Steps to Reproduce

  1. Create Vue 3 app with a few components
  2. In main.ts:
import { createApp } from "vue";

import * as Sentry from "@sentry/vue";
import { BrowserTracing } from "@sentry/tracing";

import App from "./App.vue";
import router from "./router";
import { ENVIRONMENT, VERSION } from "./info";

const app = createApp(App);

Sentry.init({
  app,
  dsn: "https://[email protected]/6391918",
  integrations: [
    new BrowserTracing({
      routingInstrumentation: Sentry.vueRouterInstrumentation(router),
      tracingOrigins: ["localhost",  /^\//],
    }),
  ],
  tracesSampleRate: 1.0,
  trackComponents: true,
  debug: true,
});

app.use(router);
app.mount("#app");

Expected Result

According to docs soon as the SDK is initialized (without any additional component tracking config), the ui.vue.render root application loading span should be added to the ongoing pageload transaction.

Actual Result

ui.vue.render is not added to the ongoing transaction in a Vue 3 app

To do:

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions