Hi guys!
I’m trying to implement Senry in an Electron + Vue2 app, what is the best way to do this?
That is my sentry.js
config file
import Vue from 'vue'
import * as SentryForElectron from '@sentry/electron'
import * as SentryForVue from '@sentry/vue'
import { Vue as VueIntegration } from '@sentry/integrations'
export const ElectronCrashReporter = () =>
SentryForElectron.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
release: process.env.VUE_APP_VERSION,
})
export const VueCrashReporter = () =>
SentryForVue.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
integrations: [new VueIntegration({ Vue, attachProps: true })],
release: process.env.VUE_APP_VERSION,
})
In the main process
import it and run ElectronCrashReporter()
, the same for renderer process
with VueCrashReporter()
In the main process
it works but in the renderer
it does not work