Skip to content

Commit d683700

Browse files
committed
Remove [test] package from fastapi instrumentation
Fixes #2201
1 parent 46a8c59 commit d683700

File tree

3 files changed

+39
-10
lines changed

3 files changed

+39
-10
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-fastapi/pyproject.toml

-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ dependencies = [
3535
instruments = [
3636
"fastapi ~= 0.58",
3737
]
38-
test = [
39-
"opentelemetry-instrumentation-fastapi[instruments]",
40-
"opentelemetry-test-utils == 0.45b0.dev",
41-
"requests ~= 2.23", # needed for testclient
42-
"httpx ~= 0.22", # needed for testclient
43-
]
4438

4539
[project.entry-points.opentelemetry_instrumentor]
4640
fastapi = "opentelemetry.instrumentation.fastapi:FastAPIInstrumentor"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
annotated-types==0.6.0
2+
anyio==4.3.0
3+
asgiref==3.7.2
4+
attrs==23.2.0
5+
certifi==2024.2.2
6+
charset-normalizer==3.3.2
7+
Deprecated==1.2.14
8+
exceptiongroup==1.2.0
9+
fastapi==0.109.2
10+
h11==0.14.0
11+
httpcore==1.0.4
12+
httpx==0.27.0
13+
idna==3.6
14+
importlib-metadata==6.11.0
15+
iniconfig==2.0.0
16+
packaging==23.2
17+
pluggy==1.4.0
18+
py==1.11.0
19+
py-cpuinfo==9.0.0
20+
pydantic==2.6.2
21+
pydantic_core==2.16.3
22+
pytest==7.1.3
23+
pytest-benchmark==4.0.0
24+
requests==2.31.0
25+
sniffio==1.3.0
26+
starlette==0.36.3
27+
tomli==2.0.1
28+
typing_extensions==4.9.0
29+
urllib3==2.2.1
30+
wrapt==1.16.0
31+
zipp==3.17.0
32+
-e opentelemetry-instrumentation
33+
-e util/opentelemetry-util-http
34+
-e instrumentation/opentelemetry-instrumentation-asgi
35+
-e instrumentation/opentelemetry-instrumentation-fastapi

Diff for: tox.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ commands_pre =
333333

334334
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
335335

336-
falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid,tornado,starlette,fastapi,aiohttp,asgi,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
336+
falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid,tornado,starlette,aiohttp,asgi,httpx-{18,21},requests,urllib,urllib3v-{1,2},wsgi: pip install {toxinidir}/util/opentelemetry-util-http
337337
wsgi,falcon-{1,2,3},flask-{213,220,300},django-{1,2,3,4},pyramid: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-wsgi[test]
338-
asgi,django-{3,4},starlette,fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
338+
asgi,django-{3,4},starlette: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asgi[test]
339339

340340
asyncpg: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-asyncpg[test]
341341

@@ -362,7 +362,7 @@ commands_pre =
362362

363363
django-{1,2,3,4}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-django[test]
364364

365-
fastapi: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi[test]
365+
fastapi: pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi/test-requirements.txt
366366

367367
mysql: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
368368

@@ -553,7 +553,7 @@ commands_pre =
553553
; python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-sklearn[test]
554554
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-redis[test]
555555
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-remoulade[test]
556-
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi[test]
556+
pip install -r {toxinidir}/instrumentation/opentelemetry-instrumentation-fastapi/test-requirements.txt
557557
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-jinja2[test]
558558
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-kafka-python[test]
559559
python -m pip install -e {toxinidir}/instrumentation/opentelemetry-instrumentation-confluent-kafka[test]

0 commit comments

Comments
 (0)