2021-06-16 14:10:35 -04:00
|
|
|
import '../webpack';
|
|
|
|
|
2019-11-05 16:07:46 -05:00
|
|
|
import SentryConfig from './sentry_config';
|
2017-04-04 09:58:45 -04:00
|
|
|
|
2017-04-14 16:09:16 -04:00
|
|
|
const index = function index() {
|
2019-11-05 16:07:46 -05:00
|
|
|
SentryConfig.init({
|
|
|
|
dsn: gon.sentry_dsn,
|
2017-04-14 16:09:16 -04:00
|
|
|
currentUserId: gon.current_user_id,
|
2019-04-07 15:21:52 -04:00
|
|
|
whitelistUrls:
|
|
|
|
process.env.NODE_ENV === 'production'
|
|
|
|
? [gon.gitlab_url]
|
|
|
|
: [gon.gitlab_url, 'webpack-internal://'],
|
|
|
|
environment: gon.sentry_environment,
|
2017-05-21 08:38:03 -04:00
|
|
|
release: gon.revision,
|
2017-05-19 16:13:57 -04:00
|
|
|
tags: {
|
2017-05-21 08:38:03 -04:00
|
|
|
revision: gon.revision,
|
2021-06-28 17:10:13 -04:00
|
|
|
feature_category: gon.feature_category,
|
2017-05-19 16:13:57 -04:00
|
|
|
},
|
2017-04-14 16:09:16 -04:00
|
|
|
});
|
|
|
|
|
2019-11-05 16:07:46 -05:00
|
|
|
return SentryConfig;
|
2017-04-14 16:09:16 -04:00
|
|
|
};
|
2017-04-04 09:58:45 -04:00
|
|
|
|
2017-04-13 12:17:41 -04:00
|
|
|
index();
|
|
|
|
|
|
|
|
export default index;
|