Add sentry

This commit is contained in:
2022-04-24 15:52:45 +03:00
parent 7e8374b9a7
commit 01d0263156
4 changed files with 62 additions and 1 deletions

View File

@@ -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:

View File

@@ -18,5 +18,7 @@ class EnvConfig(BaseSettings):
CONVERTER_URL: str
SENTRY_DSN: str
env_config = EnvConfig()