Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry: temp disable production check #2236

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion frontend/sentry.client.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SENTRY_SAMPLING_ENABLED, VERCEL_ENV } from '@config/env';
import { isCurrentProductionDeployment } from '@helpers/vercel-helpers';
// import { isCurrentProductionDeployment } from '@helpers/vercel-helpers';
import { SentryErrorIntegration } from '@ifixit/sentry';
import { BrowserTracing } from '@sentry/browser';
import * as Sentry from '@sentry/nextjs';
Expand All @@ -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
5 changes: 4 additions & 1 deletion frontend/sentry.edge.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SentryErrorIntegration } from './../packages/sentry/index';
import { SENTRY_SAMPLING_ENABLED, VERCEL_ENV } from '@config/env';
import { isCurrentProductionDeployment } from '@helpers/vercel-helpers';
// import { isCurrentProductionDeployment } from '@helpers/vercel-helpers';
import * as Sentry from '@sentry/nextjs';

const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN;
Expand All @@ -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
5 changes: 4 additions & 1 deletion frontend/sentry.server.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SENTRY_SAMPLING_ENABLED, VERCEL_ENV } from '@config/env';
import { isCurrentProductionDeployment } from '@helpers/vercel-helpers';
// import { isCurrentProductionDeployment } from '@helpers/vercel-helpers';
import { SentryErrorIntegration } from '@ifixit/sentry';
import * as Sentry from '@sentry/nextjs';

Expand Down 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
Loading