-
Notifications
You must be signed in to change notification settings - Fork 647
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
psycopg2-binary support #1422
psycopg2-binary support #1422
Conversation
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.
A test-requirements.txt
file needs to be added to test with only psycopg2-binary
, I guess.
Oh, this is 2 years old. 😢 Still valid tho. |
@@ -13,4 +13,4 @@ | |||
# limitations under the License. | |||
|
|||
|
|||
_instruments = ("psycopg2 >= 2.7.3.1",) | |||
_instruments = (("psycopg2 >= 2.7.3.1", "psycopg2-binary >= 2.7.3.1"),) |
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.
_instruments = (("psycopg2 >= 2.7.3.1", "psycopg2-binary >= 2.7.3.1"),) | |
_instruments = ("psycopg2 >= 2.7.3.1", "psycopg2-binary >= 2.7.3.1") |
This is what the kafka-python is doing, please take a look at opentelemetry-instrumentation-kafka-python/pyproject.toml, with that updated you should be able to drop the dependencies,py changes.
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.
I've done the minimal implementation here #3186
Description
Inspired by this comment. I changed the idea slightly to OR inner tuples, it seemed to be easier to do but let me know what do you think about it.
Fixes #610
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.