Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Use a custom navigation breadcrumb in src/renderer/router/index.js
return new Breadcrumbs({ history: false })
}
return integration
})
if (configOverrides.integrations) {
return configOverrides.integrations(integrations)
}
return integrations
}
})
Sentry.configureScope(scope => {
scope.setTag('app.version', packageJson.version)
scope.setTag('app.build', process.env.BUILD)
scope.setTag('app.env', process.env.NODE_ENV)
})
}
function identifyInSentryAndMixpanel(host: string, userData: any): void {
if (process.env.DISABLE_MIXPANEL !== '1') {
mixpanel.identify((`${host} - ${userData.emailAddress}`));
mixpanel.people.set({
host,
version,
locale: userData.locale,
$timezone: userData.timeZone,
$name: userData.displayName,
$email: userData.emailAddress,
$distinct_id: `${host} - ${userData.emailAddress}`,
});
Sentry.configureScope((scope) => {
scope.setUser({
host,
locale: userData.locale,
timeZone: userData.timeZone,
name: userData.displayName,
email: userData.emailAddress,
});
});
}
}