debian-mirror-gitlab/app/assets/javascripts/sentry/index.js

24 lines
489 B
JavaScript
Raw Normal View History

2019-12-26 22:10:19 +05:30
import SentryConfig from './sentry_config';
2017-08-17 22:00:37 +05:30
const index = function index() {
2019-12-26 22:10:19 +05:30
SentryConfig.init({
dsn: gon.sentry_dsn,
2017-08-17 22:00:37 +05:30
currentUserId: gon.current_user_id,
2019-07-31 22:56:46 +05:30
whitelistUrls:
process.env.NODE_ENV === 'production'
? [gon.gitlab_url]
: [gon.gitlab_url, 'webpack-internal://'],
environment: gon.sentry_environment,
2017-08-17 22:00:37 +05:30
release: gon.revision,
tags: {
revision: gon.revision,
},
});
2019-12-26 22:10:19 +05:30
return SentryConfig;
2017-08-17 22:00:37 +05:30
};
index();
export default index;