File size: 416 Bytes
b88c922 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | from fastapi import FastAPI
from app.api.api_v1.api import api_router
from app.core.config import settings
import sentry_sdk
import os
sentry_sdk.init(
dsn=settings.SENTRY_DSN,
environment=os.environ['PYTHON_ENV'],
traces_sample_rate=1.0,
)
app = FastAPI(
title=settings.PROJECT_NAME, openapi_url=f"{settings.API_V1_STR}/openapi.json"
)
app.include_router(api_router, prefix=settings.API_V1_STR)
|