dd-trace-py
dd-trace-py copied to clipboard
Aiopg patch doesn't work with aiopg 1.0.0
As of aiopg 1.0.0 there is no longer an aiopg.connection._connect function. The current release of ddtrace patches this function and will no longer work.
I've tried to make fix, but I think that the tests will have to be rewritten as well. Aiopg 1.0 is only compatible with the async/await syntax, which is not used everywhere in ddtrace.
I think we avoided the async/await syntax because we used to support Python 3.4. That's not the case anymore, so we should be fine using it now.
I'll work on this here https://github.com/DataDog/dd-trace-py/pull/973
@DataDog/apm-framework-integrations-reviewers-py
The request for an aiopg>=1.0.0 integration is in our team's feature backlog and is not planned for the short term. As part of the backlog it will be considered during feature prioritization.
If anyone reading this is motivated to contribute the integration, please do so.
As of now not only does the patching fail but the exception seems to be unhandled causing the application to fail. Does this hold true? If so it's quite an issue for us and I'd like ddtrace to handle its internal exception not leaking them them to the application us it.