from contextlib import asynccontextmanager from fastapi import FastAPI from foundation.observability.logger.loggering import server_logger @asynccontextmanager async def lifespan(app: FastAPI): server_logger.info("Construction write service lifespan startup") yield server_logger.info("Construction write service lifespan shutdown")