We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f6042 commit c8b3cccCopy full SHA for c8b3ccc
1 file changed
backend/app/main.py
@@ -1,3 +1,4 @@
1
+import sentry_sdk
2
from fastapi import FastAPI
3
from fastapi.routing import APIRoute
4
from starlette.middleware.cors import CORSMiddleware
@@ -10,6 +11,9 @@ def custom_generate_unique_id(route: APIRoute) -> str:
10
11
return f"{route.tags[0]}-{route.name}"
12
13
14
+if settings.SENTRY_DSN:
15
+ sentry_sdk.init(dsn=str(settings.SENTRY_DSN), enable_tracing=True)
16
+
17
app = FastAPI(
18
title=settings.PROJECT_NAME,
19
openapi_url=f"{settings.API_V1_STR}/openapi.json",
0 commit comments