Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-30 21:27:27 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-30 21:27:27 +0300
commit29c5174274feafebc4ecb182eaece3dfb2197d22 (patch)
treee1632a18a93076b6cad8f92b1258579ff6e93e8f /app/assets/javascripts/raven/index.js
parent93a332a620f54038d78bd82ce6f1f553d92b7f46 (diff)
parentaebb2f70257882dd530b820f3cfdd67621d2a3fd (diff)
Merge branch 'feat/sentry-environment' into 'master'
feat: add option to define the Sentry Environment See merge request gitlab-org/gitlab-ce!27091
Diffstat (limited to 'app/assets/javascripts/raven/index.js')
-rw-r--r--app/assets/javascripts/raven/index.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/raven/index.js b/app/assets/javascripts/raven/index.js
index edc2293915f..4dd0175e528 100644
--- a/app/assets/javascripts/raven/index.js
+++ b/app/assets/javascripts/raven/index.js
@@ -4,8 +4,11 @@ const index = function index() {
RavenConfig.init({
sentryDsn: gon.sentry_dsn,
currentUserId: gon.current_user_id,
- whitelistUrls: [gon.gitlab_url],
- isProduction: process.env.NODE_ENV,
+ whitelistUrls:
+ process.env.NODE_ENV === 'production'
+ ? [gon.gitlab_url]
+ : [gon.gitlab_url, 'webpack-internal://'],
+ environment: gon.sentry_environment,
release: gon.revision,
tags: {
revision: gon.revision,