Skip to content

Add sqlcomment support for psycopg(2) instrument_connection #3070

@tammy-baylis-swi

Description

@tammy-baylis-swi

What problem do you want to solve?

sqlcommenting is supported by psycopg2 and psycopg instrumentors, but only if user calls instrument().

Describe the solution you'd like

Update psycopg2 and psycopg instrumentors so that users can pass enable_commenter and commenter_options to instrument_connection. Similar updates were made recently for mysqlclient and PyMySQL instrumentors.

Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement a fix?

Yes

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions