Skip to content

Commit 63e7561

Browse files
authored
Update the psycopg2 dependency (#543)
1 parent e129174 commit 63e7561

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
([#469](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/469))
1818
- Implemented specification that HTTP span attributes must not contain username and password.
1919
([#538](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/538))
20+
- Changed the psycopg2-binary to psycopg2 as dependency in production
21+
([#543](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/543))
2022

2123
### Added
2224
- `opentelemetry-instrumentation-httpx` Add `httpx` instrumentation

instrumentation/opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2/package.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515

16-
_instruments = ("psycopg2-binary >= 2.7.3.1",)
16+
_instruments = ("psycopg2 >= 2.7.3.1",)

opentelemetry-instrumentation/src/opentelemetry/instrumentation/bootstrap_gen.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"library": "mysql-connector-python ~= 8.0",
8181
"instrumentation": "opentelemetry-instrumentation-mysql==0.23.dev0",
8282
},
83-
"psycopg2-binary": {
84-
"library": "psycopg2-binary >= 2.7.3.1",
83+
"psycopg2": {
84+
"library": "psycopg2 >= 2.7.3.1",
8585
"instrumentation": "opentelemetry-instrumentation-psycopg2==0.23.dev0",
8686
},
8787
"pymemcache": {

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ deps =
403403
mysql-connector-python ~= 8.0
404404
pymongo ~= 3.1
405405
PyMySQL ~= 0.10.1
406-
psycopg2-binary ~= 2.8.4
406+
psycopg2 ~= 2.8.4
407407
aiopg >= 0.13.0
408408
sqlalchemy ~= 1.3.16
409409
redis ~= 3.3.11

0 commit comments

Comments
 (0)