mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 13:43:03 +08:00
@ -34,11 +34,6 @@ dependencies = [
|
||||
instruments = [
|
||||
"httpx >= 0.18.0",
|
||||
]
|
||||
test = [
|
||||
"opentelemetry-instrumentation-httpx[instruments]",
|
||||
"opentelemetry-sdk ~= 1.12",
|
||||
"opentelemetry-test-utils == 0.45b0.dev",
|
||||
]
|
||||
|
||||
[project.entry-points.opentelemetry_instrumentor]
|
||||
httpx = "opentelemetry.instrumentation.httpx:HTTPXClientInstrumentor"
|
||||
|
@ -0,0 +1,28 @@
|
||||
anyio==3.7.1
|
||||
asgiref==3.7.2
|
||||
attrs==23.2.0
|
||||
certifi==2024.2.2
|
||||
Deprecated==1.2.14
|
||||
exceptiongroup==1.2.0
|
||||
h11==0.12.0
|
||||
httpcore==0.13.7
|
||||
httpx==0.18.2
|
||||
idna==3.6
|
||||
importlib-metadata==6.11.0
|
||||
iniconfig==2.0.0
|
||||
packaging==23.2
|
||||
pluggy==1.4.0
|
||||
py==1.11.0
|
||||
py-cpuinfo==9.0.0
|
||||
pytest==7.1.3
|
||||
pytest-benchmark==4.0.0
|
||||
respx==0.17.1
|
||||
rfc3986==1.5.0
|
||||
sniffio==1.3.1
|
||||
tomli==2.0.1
|
||||
typing_extensions==4.10.0
|
||||
wrapt==1.16.0
|
||||
zipp==3.17.0
|
||||
-e opentelemetry-instrumentation
|
||||
-e util/opentelemetry-util-http
|
||||
-e instrumentation/opentelemetry-instrumentation-httpx
|
@ -0,0 +1,27 @@
|
||||
anyio==4.3.0
|
||||
asgiref==3.7.2
|
||||
attrs==23.2.0
|
||||
certifi==2024.2.2
|
||||
Deprecated==1.2.14
|
||||
exceptiongroup==1.2.0
|
||||
h11==0.14.0
|
||||
httpcore==1.0.4
|
||||
httpx==0.27.0
|
||||
idna==3.6
|
||||
importlib-metadata==6.11.0
|
||||
iniconfig==2.0.0
|
||||
packaging==23.2
|
||||
pluggy==1.4.0
|
||||
py==1.11.0
|
||||
py-cpuinfo==9.0.0
|
||||
pytest==7.1.3
|
||||
pytest-benchmark==4.0.0
|
||||
respx==0.20.2
|
||||
sniffio==1.3.1
|
||||
tomli==2.0.1
|
||||
typing_extensions==4.10.0
|
||||
wrapt==1.16.0
|
||||
zipp==3.17.0
|
||||
-e opentelemetry-instrumentation
|
||||
-e util/opentelemetry-util-http
|
||||
-e instrumentation/opentelemetry-instrumentation-httpx
|
41
tox.ini
41
tox.ini
@ -221,8 +221,8 @@ envlist =
|
||||
pypy3-test-instrumentation-tortoiseorm
|
||||
|
||||
; opentelemetry-instrumentation-httpx
|
||||
py3{8,9,10,11}-test-instrumentation-httpx-{18,21}
|
||||
pypy3-test-instrumentation-httpx-{18,21}
|
||||
py3{8,9,10,11}-test-instrumentation-httpx-{0,1}
|
||||
pypy3-test-instrumentation-httpx-{0,1}
|
||||
|
||||
; opentelemetry-util-http
|
||||
py3{8,9,10,11}-test-util-http
|
||||
@ -300,10 +300,6 @@ deps =
|
||||
pymemcache-300: pymemcache >3.0.0,<3.4.2
|
||||
pymemcache-342: pymemcache ==3.4.2
|
||||
pymemcache-400: pymemcache ==4.0.0
|
||||
httpx-18: httpx>=0.18.0,<0.19.0
|
||||
httpx-18: respx~=0.17.0
|
||||
httpx-21: httpx>=0.19.0
|
||||
httpx-21: respx~=0.20.1
|
||||
urllib3v-1: urllib3 >=1.0.0,<2.0.0
|
||||
urllib3v-2: urllib3 >=2.0.0,<3.0.0
|
||||
|
||||
@ -345,7 +341,7 @@ commands_pre =
|
||||
|
||||
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
|
||||
|
||||
httpx-{18,21},requests,urllib,urllib3v-{1,2}: pip install {toxinidir}/util/opentelemetry-util-http
|
||||
requests,urllib,urllib3v-{1,2}: pip install {toxinidir}/util/opentelemetry-util-http
|
||||
|
||||
wsgi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi/test-requirements.txt
|
||||
|
||||
@ -422,7 +418,7 @@ commands_pre =
|
||||
|
||||
logging: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-logging[test]
|
||||
|
||||
aio-pika-{8,9}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aio-pika[test]
|
||||
aio-pika-{0,1,2}: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-aio-pika/test-requirements-2.txt
|
||||
|
||||
aiohttp-client: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-aiohttp-client/test-requirements.txt
|
||||
|
||||
@ -442,7 +438,12 @@ commands_pre =
|
||||
|
||||
asyncio: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncio/test-requirements.txt
|
||||
|
||||
httpx-{18,21}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx[test]
|
||||
; The numbers at the end of the environment names
|
||||
; below mean these dependencies are being used:
|
||||
; 0: httpx>=0.18.0,<0.19.0 respx~=0.17.0
|
||||
; 1: httpx>=0.19.0 respx~=0.20.1
|
||||
httpx-0: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/test-requirements-0.txt
|
||||
httpx-1: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/test-requirements-1.txt
|
||||
|
||||
sdkextension-aws: pip install {toxinidir}/sdk-extension/opentelemetry-sdk-extension-aws[test]
|
||||
|
||||
@ -472,13 +473,13 @@ commands =
|
||||
test-instrumentation-cassandra: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-cassandra/tests {posargs}
|
||||
test-instrumentation-celery: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-celery/tests {posargs}
|
||||
test-instrumentation-dbapi: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi/tests {posargs}
|
||||
test-instrumentation-django-{1,2,3,4}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-django/tests {posargs}
|
||||
test-instrumentation-elasticsearch-{2,5,6}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-elasticsearch/tests {posargs}
|
||||
test-instrumentation-falcon-{1,2,3}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon/tests {posargs}
|
||||
test-instrumentation-django: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-django/tests {posargs}
|
||||
test-instrumentation-elasticsearch: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-elasticsearch/tests {posargs}
|
||||
test-instrumentation-falcon: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-falcon/tests {posargs}
|
||||
test-instrumentation-fastapi: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi/tests {posargs}
|
||||
test-instrumentation-flask-{213,220,300}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-flask/tests {posargs}
|
||||
test-instrumentation-flask: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-flask/tests {posargs}
|
||||
test-instrumentation-urllib: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-urllib/tests {posargs}
|
||||
test-instrumentation-urllib3v-{1,2}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-urllib3/tests {posargs}
|
||||
test-instrumentation-urllib3v: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-urllib3/tests {posargs}
|
||||
test-instrumentation-grpc: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc/tests {posargs}
|
||||
test-instrumentation-jinja2: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-jinja2/tests {posargs}
|
||||
test-instrumentation-kafka-python: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-kafka-python/tests {posargs}
|
||||
@ -486,11 +487,11 @@ commands =
|
||||
test-instrumentation-logging: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-logging/tests {posargs}
|
||||
test-instrumentation-mysql: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql/tests {posargs}
|
||||
test-instrumentation-mysqlclient: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-mysqlclient/tests {posargs}
|
||||
test-instrumentation-sio-pika-{0,1}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-pika/tests {posargs}
|
||||
test-instrumentation-aio-pika-{8,9}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-aio-pika/tests {posargs}
|
||||
test-instrumentation-sio-pika: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-pika/tests {posargs}
|
||||
test-instrumentation-aio-pika: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-aio-pika/tests {posargs}
|
||||
test-instrumentation-psycopg: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg/tests {posargs}
|
||||
test-instrumentation-psycopg2: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-psycopg2/tests {posargs}
|
||||
test-instrumentation-pymemcache-{135,200,300,342,400}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-pymemcache/tests {posargs}
|
||||
test-instrumentation-pymemcache: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-pymemcache/tests {posargs}
|
||||
test-instrumentation-pymongo: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo/tests {posargs}
|
||||
test-instrumentation-pymysql: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-pymysql/tests {posargs}
|
||||
test-instrumentation-pyramid: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-pyramid/tests {posargs}
|
||||
@ -498,14 +499,14 @@ commands =
|
||||
test-instrumentation-remoulade: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-remoulade/tests {posargs}
|
||||
test-instrumentation-requests: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-requests/tests {posargs}
|
||||
test-instrumentation-sklearn: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-sklearn/tests {posargs}
|
||||
test-instrumentation-sqlalchemy-{11,14}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-sqlalchemy/tests {posargs}
|
||||
test-instrumentation-sqlalchemy: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-sqlalchemy/tests {posargs}
|
||||
test-instrumentation-sqlite3: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-sqlite3/tests {posargs}
|
||||
test-instrumentation-starlette: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-starlette/tests {posargs}
|
||||
test-instrumentation-system-metrics: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics/tests {posargs}
|
||||
test-instrumentation-tornado: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado/tests {posargs}
|
||||
test-instrumentation-tortoiseorm: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm/tests {posargs}
|
||||
test-instrumentation-wsgi: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi/tests {posargs}
|
||||
test-instrumentation-httpx-{18,21}: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/tests {posargs}
|
||||
test-instrumentation-httpx: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/tests {posargs}
|
||||
test-instrumentation-asyncio: pytest {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncio/tests {posargs}
|
||||
test-util-http: pytest {toxinidir}/util/opentelemetry-util-http/tests {posargs}
|
||||
test-sdkextension-aws: pytest {toxinidir}/sdk-extension/opentelemetry-sdk-extension-aws/tests {posargs}
|
||||
@ -601,7 +602,7 @@ commands_pre =
|
||||
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-tornado/test-requirements.txt
|
||||
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-tortoiseorm[test]
|
||||
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
|
||||
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx[test]
|
||||
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-httpx/test-requirements-1.txt
|
||||
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-aws-lambda[test]
|
||||
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics[test]
|
||||
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncio/test-requirements.txt
|
||||
|
Reference in New Issue
Block a user