chore: 整理electron目录

This commit is contained in:
qier222 2022-05-13 19:30:13 +08:00
parent ca4725a46e
commit 8d7ae405a6
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
15 changed files with 160 additions and 68 deletions

View file

@ -0,0 +1,19 @@
import * as Sentry from '@sentry/node'
import * as Tracing from '@sentry/tracing'
import pkg from '../../../package.json'
import log from './log'
log.info(`[sentry] sentry initializing`)
Sentry.init({
dsn: 'https://2aaaa67f1c3d4d6baefafa5d58fcf340@o436528.ingest.sentry.io/6274637',
release: `yesplaymusic@${pkg.version}`,
environment: process.env.NODE_ENV,
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
})
log.info(`[sentry] sentry initialized`)