feat(RHINENG-15883): Add image-builder to new sentry flow
This commit is contained in:
parent
95df46c885
commit
60fc68310d
2 changed files with 38 additions and 13 deletions
|
|
@ -55,26 +55,18 @@ if (process.env.NODE_ENV) {
|
|||
add_define('process.env.NODE_ENV', process.env.NODE_ENV);
|
||||
}
|
||||
|
||||
if (process.env.SENTRY_AUTH_TOKEN) {
|
||||
if (process.env.ENABLE_SENTRY) {
|
||||
plugins.push(
|
||||
sentryWebpackPlugin({
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
org: 'red-hat-it',
|
||||
project: 'image-builder-rhel',
|
||||
moduleMetadata: ({ release }) => ({
|
||||
dsn: 'https://f4b4288bbb7cf6c0b2ac1a2b90a076bf@o490301.ingest.us.sentry.io/4508297557901312',
|
||||
release,
|
||||
...(process.env.SENTRY_AUTH_TOKEN && {
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
}),
|
||||
})
|
||||
);
|
||||
} else {
|
||||
// justs injects the debug ids
|
||||
plugins.push(
|
||||
sentryWebpackPlugin({
|
||||
org: 'red-hat-it',
|
||||
project: 'image-builder-rhel',
|
||||
moduleMetadata: ({ release }) => ({
|
||||
dsn: 'https://f4b4288bbb7cf6c0b2ac1a2b90a076bf@o490301.ingest.us.sentry.io/4508297557901312',
|
||||
org: 'red-hat-it',
|
||||
project: 'image-builder-rhel',
|
||||
release,
|
||||
}),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue