From fa9541fb0ddc63d99a4ced1b2087ab9b8419c68a Mon Sep 17 00:00:00 2001 From: Esteban Maya Date: Tue, 2 Apr 2024 22:29:32 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20sentry=20dns=20initiali?= =?UTF-8?q?zation=20following=20the=20environment=20settings=20(#1145)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index a1d7e22..4c252a1 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -11,7 +11,7 @@ def custom_generate_unique_id(route: APIRoute) -> str: return f"{route.tags[0]}-{route.name}" -if settings.SENTRY_DSN: +if settings.SENTRY_DSN and settings.ENVIRONMENT != "local": sentry_sdk.init(dsn=str(settings.SENTRY_DSN), enable_tracing=True) app = FastAPI(