Browse Source
🔧 Update sentry dns initialization following the environment settings (#1145)
pull/13907/head
Esteban Maya
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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( |
|
|
|