async def get_transaction_context(
    app: Annotated[Application, Depends(get_application)],
) -> TransactionContext:
    """Creates a new transaction context for each request"""
    async with app.transaction_context() as ctx:
        yield ctx
Creates a new transaction context for each request
src/api/dependencies.py