Added Node environment to Sentry metadata
no issue - this allows us to differentiate between development and production
This commit is contained in:
parent
ce48d36a49
commit
9a962368dc
@ -8,9 +8,11 @@ const expressNoop = function (req, res, next) {
|
||||
if (sentryConfig && !sentryConfig.disabled) {
|
||||
const Sentry = require('@sentry/node');
|
||||
const version = require('../server/lib/ghost-version').full;
|
||||
const environment = config.get('env');
|
||||
Sentry.init({
|
||||
dsn: sentryConfig.dsn,
|
||||
release: 'ghost@' + version
|
||||
release: 'ghost@' + version,
|
||||
environment: environment
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
|
Loading…
Reference in New Issue
Block a user