mirror of
https://github.com/flibusta-apps/users_settings_server.git
synced 2025-12-06 06:35:39 +01:00
Add sentry
This commit is contained in:
@@ -17,5 +17,7 @@ class EnvConfig(BaseSettings):
|
||||
REDIS_DB: int
|
||||
REDIS_PASSWORD: Optional[str]
|
||||
|
||||
SENTRY_SDN: str
|
||||
|
||||
|
||||
env_config = EnvConfig()
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware
|
||||
|
||||
from core.app import start_app
|
||||
from core.config import env_config
|
||||
|
||||
|
||||
app = start_app()
|
||||
sentry_sdk.init(dsn=env_config.SENTRY_SDN)
|
||||
|
||||
app = SentryAsgiMiddleware(start_app())
|
||||
|
||||
Reference in New Issue
Block a user