tom-pytel opened a new pull request, #211:
URL: https://github.com/apache/skywalking-python/pull/211

   `psycopg2._psycopg.register_type()` can be called with a connection or 
cursor, but since these are wrapped proxy objects when instrumented the binary 
module `_psycopg` does not recognize them causing calls like 
`psycopg2.extras.register_json()` to fail:
   ```
   ...
      File "/usr/local/lib/python3.10/site-packages/psycopg2/_json.py", line 
120, in register_json
        register_type(JSON, not globally and conn_or_curs or None)
    TypeError: argument 2 must be a connection, cursor or None
   ```
   The fix is simply to pass unwrapped connection or cursor.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to