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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
557 B
JavaScript
Raw Normal View History

2021-09-04 01:27:46 +05:30
import '../webpack';
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,
2021-09-30 23:02:18 +05:30
feature_category: gon.feature_category,
2017-08-17 22:00:37 +05:30
},
});
2019-12-26 22:10:19 +05:30
return SentryConfig;
2017-08-17 22:00:37 +05:30
};
index();
export default index;