Open
Description
When wrapping the connection, the default cursor_factory
is set for the connection, but the connection is returned as is rather than a proxy. Therefore, when a cursor is created with the connection_factory
argument passed, the instrumentation does not happen.
Steps to reproduce
Set up the Psycopg2Instrumentor, create a cursor passing the cursor_factory
argument, and run a query.
What is the expected behavior?
Spans produced/exported
What is the actual behavior?
No spans produced/exported