diff --git a/src/utils/sentry.ts b/src/utils/sentry.ts index f89506974..c4ac05f9a 100644 --- a/src/utils/sentry.ts +++ b/src/utils/sentry.ts @@ -43,7 +43,6 @@ const transport = makeMultiplexedTransport(makeFetchTransport, (args) => { return []; }); -// TODO: WE NEED TO RUN THIS AGAINTS PRODUCTION WITH ADVISOR BE IN PROD AFTER MIGRATION -> function initSentry() { if (sentryInitialized) { return; @@ -99,6 +98,13 @@ function initSentry() { return event; }, + //These two apps will not be set up as of now. This helps limit transacations + beforeSendTransaction: (event) => { + if (event?.contexts?.app?.app_name === 'subscriptions' || event.contexts?.app?.app_name === 'image-builder') { + return null; + } + return event; + }, }); }