mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 15:05:37 +01:00
Add sentry
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
from prometheus_fastapi_instrumentator import Instrumentator
|
||||
import sentry_sdk
|
||||
|
||||
from app.views import router, healthcheck_router
|
||||
from core.config import env_config
|
||||
|
||||
|
||||
sentry_sdk.init(
|
||||
env_config.SENTRY_DSN,
|
||||
)
|
||||
|
||||
|
||||
def start_app() -> FastAPI:
|
||||
|
||||
@@ -18,5 +18,7 @@ class EnvConfig(BaseSettings):
|
||||
|
||||
CONVERTER_URL: str
|
||||
|
||||
SENTRY_DSN: str
|
||||
|
||||
|
||||
env_config = EnvConfig()
|
||||
|
||||
Reference in New Issue
Block a user