-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support enable_commenter for instrument_connection by psycopg(2 #3071
base: main
Are you sure you want to change the base?
Support enable_commenter for instrument_connection by psycopg(2 #3071
Conversation
b102323
to
bf49c8c
Compare
4f969ef
to
e148c9f
Compare
Sorry to drag in several participants automatically! I committed changes I didn't mean to, and it's fixed now. |
connection: psycopg.Connection, | ||
tracer_provider: typing.Optional[trace_api.TracerProvider] = None, | ||
enable_commenter: bool = False, | ||
commenter_options: dict = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want enable_attribute_commenter
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Added in 3587846
Description
Fixes #3070
Depends on #3043 to stop errors with manual tests (instrumenting an app and calling
instrument_connection
). Fixes docs and there will be merge conflicts.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
tox -e py312-test-instrumentation-psycopg2
tox -e py312-test-instrumentation-psycopg
Psycopg2Instrumentor.instrument_connection
PsycopgInstrumentor.instrument_connection
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.