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:
ta264 2019-03-28 09:26:39 +00:00 committed by GitHub
parent 054d1600a2
commit d5c69d0375
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 50 additions and 8 deletions

View file

@ -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();