fix: make logfire disabled by default

Initially started by
https://github.com/learnhouse/learnhouse/pull/496
This commit is contained in:
swve 2025-08-06 14:45:08 +02:00
parent b425cd2984
commit 05abc93017
4 changed files with 20 additions and 4 deletions

View file

@ -58,7 +58,7 @@ else:
# Only create tables if not in test mode (tests will handle this themselves)
if not is_testing:
SQLModel.metadata.create_all(engine)
logfire.instrument_sqlalchemy(engine=engine)
# Note: logfire instrumentation will be handled in app.py after configuration
async def connect_to_db(app: FastAPI):
app.db_engine = engine # type: ignore