mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-07 21:42:16 -07:00
Set sentry environment to be develop/nightly based on config file (#703)
* Set sentry environment to be develop/nightly based on config file Also add details on sqlite version and database migration. The separate ReconfigureSentry class is required because ReconfigureLogging happens before the database has been resolved, so you can't access IMainDatabase there * Set environment to develop/nightly in frontend too
This commit is contained in:
parent
054d1600a2
commit
d5c69d0375
6 changed files with 50 additions and 8 deletions
|
@ -76,15 +76,15 @@ export default function createSentryMiddleware() {
|
|||
|
||||
sentry.init({
|
||||
dsn,
|
||||
environment: isProduction ? 'production' : 'development',
|
||||
environment: branch,
|
||||
release,
|
||||
sendDefaultPii: true,
|
||||
beforeSend: cleanseData
|
||||
});
|
||||
|
||||
sentry.configureScope((scope) => {
|
||||
scope.setTag('branch', branch);
|
||||
scope.setTag('version', version);
|
||||
scope.setTag('production', isProduction);
|
||||
});
|
||||
|
||||
return createMiddleware();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue