Skip to content

Commit

Permalink
Some help for transaction limits
Browse files Browse the repository at this point in the history
  • Loading branch information
adonispuente committed Jun 28, 2024
1 parent 9574d6b commit f49af70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
},
});
}

Expand Down

0 comments on commit f49af70

Please sign in to comment.