mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-04 16:07:43 +00:00
e6377ce182
Necessary to monitor how the micro service acts. Will tweak sentry configurations later on.
22 lines
478 B
Python
22 lines
478 B
Python
"""Application."""
|
|
|
|
import sentry_sdk
|
|
from fastapi import FastAPI
|
|
|
|
from summary.api import health
|
|
from summary.api.main import api_router
|
|
from summary.core.config import get_settings
|
|
|
|
settings = get_settings()
|
|
|
|
|
|
if settings.sentry_dsn and settings.sentry_is_enabled:
|
|
sentry_sdk.init(dsn=settings.sentry_dsn, enable_tracing=True)
|
|
|
|
app = FastAPI(
|
|
title=settings.app_name,
|
|
)
|
|
|
|
app.include_router(api_router, prefix=settings.app_api_v1_str)
|
|
app.include_router(health.router)
|