Skip to content

Commit

Permalink
Add basic sentry.io integration
Browse files Browse the repository at this point in the history
  • Loading branch information
zzkW35 committed Feb 14, 2024
1 parent 0f9ca90 commit c65e947
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/aidapp/api/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
import sentry_sdk

from aidapp.api.routers import admin

sentry_sdk.init(
dsn="https://a31edd4f6f92c32659dc2309eff1b95b@o4506740561149952.ingest.sentry.io/4506740561346560",
enable_tracing=True,
)

app = FastAPI()

origins = ["http://localhost:5173", "https://aidapp-fe.vercel.app/"]
origins = ["http://localhost:5173", "https://aidapp-fe.vercel.app/", "https://app.aidapp.it/"]

app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit c65e947

Please sign in to comment.