[Friendly Spellcheck]: Fix typo in init_sentry event

This commit is contained in:
Jeff Astor 2023-10-19 13:43:48 -04:00 committed by GitHub
parent dee25f0e9a
commit 69e22df6e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,11 +6,11 @@ from config.config import LearnHouseConfig
async def init_sentry(app: FastAPI) -> None: async def init_sentry(app: FastAPI) -> None:
leanrhouse_config : LearnHouseConfig = app.learnhouse_config # type: ignore learnhouse_config : LearnHouseConfig = app.learnhouse_config # type: ignore
if leanrhouse_config.hosting_config.sentry_config is not None: if learnhouse_config.hosting_config.sentry_config is not None:
sentry_sdk.init( sentry_sdk.init(
dsn=app.learnhouse_config.hosting_config.sentry_config.dsn, # type: ignore dsn=app.learnhouse_config.hosting_config.sentry_config.dsn, # type: ignore
environment=app.learnhouse_config.hosting_config.sentry_config.environment, # type: ignore environment=app.learnhouse_config.hosting_config.sentry_config.environment, # type: ignore
release=app.learnhouse_config.hosting_config.sentry_config.release, # type: ignore release=app.learnhouse_config.hosting_config.sentry_config.release, # type: ignore
traces_sample_rate=1.0, traces_sample_rate=1.0,
) )