Skip to content

Commit

Permalink
Sentry: temp disable production check
Browse files Browse the repository at this point in the history
This won't work the same way once this code is in a private repo.

Let's disable this while we move this code instead of trying to re-solve
this problem beforehand.
  • Loading branch information
danielbeardsley committed Feb 8, 2024
1 parent b03bb50 commit e063bef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ const sampleRate = SENTRY_SAMPLING_ENABLED
Sentry.init({
async beforeSend(event) {
try {
/*
* Temporarily disable while we move to a new repo
const current_production = await isCurrentProductionDeployment();
event.tags = { ...event.tags, current_production };
*/
} catch (e) {
event.tags = { ...event.tags, before_send_error: true };
event.extra = {
Expand Down
3 changes: 3 additions & 0 deletions frontend/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ const sampleRate = SENTRY_SAMPLING_ENABLED
Sentry.init({
async beforeSend(event) {
try {
/*
* Temporarily disable while we move to a new repo
const current_production = await isCurrentProductionDeployment();
event.tags = { ...event.tags, current_production };
*/
} catch (e) {
event.tags = { ...event.tags, before_send_error: true };
event.extra = {
Expand Down
3 changes: 3 additions & 0 deletions frontend/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ Sentry.init({
}
}
try {
/*
* Temporarily disable while we move to a new repo
const current_production = await isCurrentProductionDeployment();
event.tags = { ...event.tags, current_production };
*/
} catch (e) {
event.tags = { ...event.tags, before_send_error: true };
event.extra = {
Expand Down

0 comments on commit e063bef

Please sign in to comment.