Skip to content

Commit 3337560

Browse files
authored
chore(openai): drop openai v0 patching and testing (#12112)
This PR officially drops tracing support for OpenAI's 0.x release line. If a user tries to use ddtrace with openai < 1.0, then we'll log a warning and stop patching to avoid hard crashing. This PR removes testing for v0, and removes patching for v0 methods. Things left to do (which can be done in a future PR): - Remove tests for v0 (test_openai_v0.py, test_openai_llmobs.py) - Remove cassette files for v0 - Refactor endpoint hooks (automatic arg tagging is now redundant, v1 response attributes are also different) ## Checklist - [x] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description articulates the motivation for the change - The change includes tests OR the PR description describes a testing strategy - The PR description notes risks associated with the change, if any - Newly-added code is easy to change - The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] Reviewer has checked that all the criteria below are met - Title is accurate - All changes are related to the pull request's stated goal - Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - Testing strategy adequately addresses listed risks - Newly-added code is easy to change - Release note makes sense to a user of the library - If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
1 parent bf15c90 commit 3337560

File tree

14 files changed

+428
-545
lines changed

14 files changed

+428
-545
lines changed

.riot/requirements/1825740.txt

-49
This file was deleted.

.riot/requirements/1c1f9ea.txt

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.9
3+
# by the following command:
4+
#
5+
# pip-compile --allow-unsafe --no-annotate .riot/requirements/1c1f9ea.in
6+
#
7+
annotated-types==0.7.0
8+
anyio==3.7.1
9+
attrs==25.1.0
10+
certifi==2024.12.14
11+
coverage[toml]==7.6.10
12+
distro==1.9.0
13+
exceptiongroup==1.2.2
14+
h11==0.14.0
15+
httpcore==1.0.7
16+
httpx==0.27.2
17+
hypothesis==6.45.0
18+
idna==3.10
19+
importlib-metadata==8.6.1
20+
iniconfig==2.0.0
21+
mock==5.1.0
22+
multidict==6.1.0
23+
numpy==2.0.2
24+
openai[datalib,embeddings]==1.0.0
25+
opentracing==2.4.0
26+
packaging==24.2
27+
pandas==2.2.3
28+
pandas-stubs==2.2.2.240807
29+
pillow==9.5.0
30+
pluggy==1.5.0
31+
propcache==0.2.1
32+
pydantic==2.10.6
33+
pydantic-core==2.27.2
34+
pytest==8.3.4
35+
pytest-asyncio==0.21.1
36+
pytest-cov==6.0.0
37+
pytest-mock==3.14.0
38+
pytest-randomly==3.16.0
39+
python-dateutil==2.9.0.post0
40+
pytz==2024.2
41+
pyyaml==6.0.2
42+
six==1.17.0
43+
sniffio==1.3.1
44+
sortedcontainers==2.4.0
45+
tomli==2.2.1
46+
tqdm==4.67.1
47+
types-pytz==2024.2.0.20241221
48+
typing-extensions==4.12.2
49+
tzdata==2025.1
50+
urllib3==1.26.20
51+
vcrpy==4.2.1
52+
wrapt==1.17.2
53+
yarl==1.18.3
54+
zipp==3.21.0

.riot/requirements/222519c.txt

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.8
3+
# by the following command:
4+
#
5+
# pip-compile --allow-unsafe --no-annotate .riot/requirements/222519c.in
6+
#
7+
annotated-types==0.7.0
8+
anyio==3.7.1
9+
attrs==25.1.0
10+
certifi==2024.12.14
11+
coverage[toml]==7.6.1
12+
distro==1.9.0
13+
exceptiongroup==1.2.2
14+
h11==0.14.0
15+
httpcore==1.0.7
16+
httpx==0.27.2
17+
hypothesis==6.45.0
18+
idna==3.10
19+
importlib-metadata==8.5.0
20+
iniconfig==2.0.0
21+
mock==5.1.0
22+
multidict==6.1.0
23+
numpy==1.24.4
24+
openai[datalib,embeddings]==1.0.0
25+
opentracing==2.4.0
26+
packaging==24.2
27+
pandas==2.0.3
28+
pandas-stubs==2.0.3.230814
29+
pillow==9.5.0
30+
pluggy==1.5.0
31+
propcache==0.2.0
32+
pydantic==2.10.6
33+
pydantic-core==2.27.2
34+
pytest==8.3.4
35+
pytest-asyncio==0.21.1
36+
pytest-cov==5.0.0
37+
pytest-mock==3.14.0
38+
pytest-randomly==3.15.0
39+
python-dateutil==2.9.0.post0
40+
pytz==2024.2
41+
pyyaml==6.0.2
42+
six==1.17.0
43+
sniffio==1.3.1
44+
sortedcontainers==2.4.0
45+
tomli==2.2.1
46+
tqdm==4.67.1
47+
types-pytz==2024.2.0.20241221
48+
typing-extensions==4.12.2
49+
tzdata==2025.1
50+
urllib3==1.26.20
51+
vcrpy==4.2.1
52+
wrapt==1.17.2
53+
yarl==1.15.2
54+
zipp==3.20.2

.riot/requirements/26381f8.txt

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.10
3+
# by the following command:
4+
#
5+
# pip-compile --allow-unsafe --no-annotate .riot/requirements/26381f8.in
6+
#
7+
annotated-types==0.7.0
8+
anyio==3.7.1
9+
attrs==25.1.0
10+
certifi==2024.12.14
11+
coverage[toml]==7.6.10
12+
distro==1.9.0
13+
exceptiongroup==1.2.2
14+
h11==0.14.0
15+
httpcore==1.0.7
16+
httpx==0.27.2
17+
hypothesis==6.45.0
18+
idna==3.10
19+
iniconfig==2.0.0
20+
mock==5.1.0
21+
multidict==6.1.0
22+
numpy==2.2.2
23+
openai[datalib,embeddings]==1.0.0
24+
opentracing==2.4.0
25+
packaging==24.2
26+
pandas==2.2.3
27+
pandas-stubs==2.2.3.241126
28+
pillow==9.5.0
29+
pluggy==1.5.0
30+
propcache==0.2.1
31+
pydantic==2.10.6
32+
pydantic-core==2.27.2
33+
pytest==8.3.4
34+
pytest-asyncio==0.21.1
35+
pytest-cov==6.0.0
36+
pytest-mock==3.14.0
37+
pytest-randomly==3.16.0
38+
python-dateutil==2.9.0.post0
39+
pytz==2024.2
40+
pyyaml==6.0.2
41+
six==1.17.0
42+
sniffio==1.3.1
43+
sortedcontainers==2.4.0
44+
tomli==2.2.1
45+
tqdm==4.67.1
46+
types-pytz==2024.2.0.20241221
47+
typing-extensions==4.12.2
48+
tzdata==2025.1
49+
urllib3==1.26.20
50+
vcrpy==4.2.1
51+
wrapt==1.17.2
52+
yarl==1.18.3

.riot/requirements/e648105.txt

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
4+
#
5+
# pip-compile --allow-unsafe --no-annotate .riot/requirements/e648105.in
6+
#
7+
annotated-types==0.7.0
8+
anyio==3.7.1
9+
attrs==25.1.0
10+
certifi==2024.12.14
11+
coverage[toml]==7.6.10
12+
distro==1.9.0
13+
h11==0.14.0
14+
httpcore==1.0.7
15+
httpx==0.27.2
16+
hypothesis==6.45.0
17+
idna==3.10
18+
iniconfig==2.0.0
19+
mock==5.1.0
20+
multidict==6.1.0
21+
numpy==2.2.2
22+
openai[datalib,embeddings]==1.0.0
23+
opentracing==2.4.0
24+
packaging==24.2
25+
pandas==2.2.3
26+
pandas-stubs==2.2.3.241126
27+
pillow==9.5.0
28+
pluggy==1.5.0
29+
propcache==0.2.1
30+
pydantic==2.10.6
31+
pydantic-core==2.27.2
32+
pytest==8.3.4
33+
pytest-asyncio==0.21.1
34+
pytest-cov==6.0.0
35+
pytest-mock==3.14.0
36+
pytest-randomly==3.16.0
37+
python-dateutil==2.9.0.post0
38+
pytz==2024.2
39+
pyyaml==6.0.2
40+
six==1.17.0
41+
sniffio==1.3.1
42+
sortedcontainers==2.4.0
43+
tqdm==4.67.1
44+
types-pytz==2024.2.0.20241221
45+
typing-extensions==4.12.2
46+
tzdata==2025.1
47+
urllib3==1.26.20
48+
vcrpy==4.2.1
49+
wrapt==1.17.2
50+
yarl==1.18.3

0 commit comments

Comments
 (0)