-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Package: vueIssues related to the Sentry Vue SDKIssues related to the Sentry Vue SDK
Description
Last reply in issue getsentry/sentry#32246
Sentry Logger [Log]: Integration installed: InboundFilters
app.js?id=b8cdcdb7d93649f7781b:2 Sentry Logger [Log]: Integration installed: FunctionToString
app.js?id=b8cdcdb7d93649f7781b:2 Sentry Logger [Log]: Integration installed: TryCatch
app.js?id=b8cdcdb7d93649f7781b:2 Sentry Logger [Log]: Integration installed: Breadcrumbs
app.js?id=b8cdcdb7d93649f7781b:2 Sentry Logger [Log]: Integration installed: GlobalHandlers
app.js?id=b8cdcdb7d93649f7781b:2 Sentry Logger [Log]: Integration installed: LinkedErrors
app.js?id=b8cdcdb7d93649f7781b:2 Sentry Logger [Log]: Integration installed: Dedupe
app.js?id=b8cdcdb7d93649f7781b:2 Sentry Logger [Log]: Integration installed: UserAgent
app.js?id=b8cdcdb7d93649f7781b:2 Sentry Logger [Warn]: Misconfigured SDK. Vue specific errors will not be captured.
Update your `Sentry.init` call with an appropriate config option:
`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).
It looks like the VM variable I am passing its not being detected as a Vue3 app only in production? hmm..
Originally posted by @fershopls in getsentry/sentry#32246 (comment)
Code provided by @fershopls:
createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: (name) => require(`./Pages/${name}.vue`),
setup({ el, app, props, plugin }) {
const vm = createApp({ render: () => h(app, props) });
console.log("sentry");
Sentry.init({
vm,
dsn: "MY-DSN",
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
logErrors: true,
});
vm.use(plugin)
.use(UtilsInstaller)
.mixin({ methods: { route } });
// Use global components
RegisterGlobalComponents(vm);
vm.config.unwrapInjectedRef = true;
vm.mount(el);
},
});
Metadata
Metadata
Assignees
Labels
Package: vueIssues related to the Sentry Vue SDKIssues related to the Sentry Vue SDK