aiopg integration is broken
As far as I can tell, the aiopg integration is broken. Testing does not run properly due to the pytest.mark.asyncio method decorator. Once replaced by the mark_asyncio decorator, tests do run, but fail due to problems with the patch. Also, aiopg.connect is not patched correctly (only aiopg.connection.connect is patched)
Summary of problem
Traceback (most recent call last):
File "
Which version of dd-trace-py are you using?
most recent pull of main
Which version of pip are you using?
Which libraries and their versions are you using?
`pip freeze`
How can we reproduce your problem?
What is the result that you get?
What is the result that you expected?
@wconti27 Can you add the test error from the failed run?
As an aside, it'd be also useful to validate the integration is broken with a sample app. Put another way, we want to know if its the integration patch or the integration's tests that are broken.
Sample app branch: conti/debug-aiopg
The sample app has two functions, the first is untraced (though it should be traced, but aiopg.connect is not correctly patched). The second function uses aiopg.connection.connect, and results in tracing, but conn.cursor fails since no conn.close_cursor() exists for aiopg.
pip install .
docker-compose up -d postgres
python -m _aiopg
This issue has been automatically closed after a period of inactivity. If it's a feature request, it has been added to the maintainers' internal backlog and will be included in an upcoming round of feature prioritization. Please comment or reopen if you think this issue was closed in error.