The instrumentor works by patching sqlalchemy.create_engine. If a user imports create_engine before calling .instrument(), the patch is applied too late and has no effect. The code runs without errors ...