Describe your environment
See the repo provided below for a simple reproduction environment. I was using Python 3.8.8 when running it locally.
Steps to reproduce
Provided a reproduction repo: https://github.com/jomasti/opentelemetry-instrumentation-sqlalchemy-pyodbc-bug
What is the expected behavior?
I expected the query to work successfully when the engine is instrumented. The code in the repo above works fine with 0.18b1.
What is the actual behavior?
Ran into TypeError: cannot create weak reference to 'pyodbc.Cursor' object.
Additional context
#315 appears to be the culprit.