Skip to content

Commit 70d798a

Browse files
authored
Move off deprecated log events (#90)
* Move off deprecated log events * Keep an old httpx version for baseline testing * Drop backports-asyncio-runner for newer pythons * Keep compat with attributes sent by Event * Stop running CI on Python 3.8 * Bump baseline to py3.9 * beta chat completions are gone in recent openai versions * Bump baseline to 1.37.0
1 parent 0c5ee21 commit 70d798a

File tree

10 files changed

+185
-169
lines changed

10 files changed

+185
-169
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
test:
3939
runs-on: ubuntu-latest
4040
env:
41-
py38: "3.8"
4241
py39: "3.9"
4342
py310: "3.10"
4443
py311: "3.11"
@@ -51,7 +50,7 @@ jobs:
5150
strategy:
5251
fail-fast: false
5352
matrix:
54-
python-version: [py38, py39, py310, py311, py312, py313]
53+
python-version: [py39, py310, py311, py312, py313]
5554
openai-version: [baseline, latest]
5655
steps:
5756
- uses: actions/checkout@v5
@@ -60,10 +59,10 @@ jobs:
6059
with:
6160
python-version: ${{ env[matrix.python-version] }}
6261
architecture: "x64"
63-
- if: ${{ env[matrix.python-version] == '3.8' || env[matrix.python-version] == '3.9' }}
62+
- if: ${{ env[matrix.python-version] == '3.9' }}
6463
run: pip install -r dev-requirements-3.9.txt
6564
working-directory: ${{ env.working_dir }}
66-
- if: ${{ env[matrix.python-version] != '3.8' && env[matrix.python-version] != '3.9' }}
65+
- if: ${{ env[matrix.python-version] != '3.9' }}
6766
run: pip install -r dev-requirements.txt
6867
working-directory: ${{ env.working_dir }}
6968
- if: ${{ env[matrix.openai-version] }}

instrumentation/elastic-opentelemetry-instrumentation-openai/dev-requirements-3.9.txt

Lines changed: 43 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,36 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.8
2+
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
55
# pip-compile --extra=dev --output-file=dev-requirements-3.9.txt --strip-extras pyproject.toml
66
#
77
annotated-types==0.7.0
88
# via pydantic
9-
anyio==4.5.2
9+
anyio==4.10.0
1010
# via
1111
# httpx
1212
# openai
13-
asgiref==3.8.1
13+
asgiref==3.9.1
1414
# via opentelemetry-test-utils
15-
build==1.2.2.post1
15+
backports-asyncio-runner==1.2.0
16+
# via pytest-asyncio
17+
build==1.3.0
1618
# via pip-tools
17-
certifi==2025.1.31
19+
certifi==2025.8.3
1820
# via
1921
# httpcore
2022
# httpx
2123
click==8.1.8
2224
# via pip-tools
23-
deprecated==1.2.18
24-
# via
25-
# opentelemetry-api
26-
# opentelemetry-semantic-conventions
2725
distro==1.9.0
2826
# via openai
29-
exceptiongroup==1.2.2
27+
exceptiongroup==1.3.0
3028
# via
3129
# anyio
3230
# pytest
33-
h11==0.14.0
31+
h11==0.16.0
3432
# via httpcore
35-
httpcore==1.0.7
33+
httpcore==1.0.9
3634
# via httpx
3735
httpx==0.27.2
3836
# via openai
@@ -41,65 +39,67 @@ idna==3.10
4139
# anyio
4240
# httpx
4341
# yarl
44-
importlib-metadata==8.5.0
42+
importlib-metadata==8.7.0
4543
# via
4644
# build
4745
# opentelemetry-api
48-
iniconfig==2.0.0
46+
iniconfig==2.1.0
4947
# via pytest
50-
jiter==0.9.0
48+
jiter==0.11.0
5149
# via openai
52-
multidict==6.1.0
50+
multidict==6.6.4
5351
# via yarl
54-
numpy==1.24.4
52+
numpy==2.0.2
5553
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
56-
openai==1.66.5
54+
openai==1.108.0
5755
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
58-
opentelemetry-api==1.31.0
56+
opentelemetry-api==1.37.0
5957
# via
6058
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
6159
# opentelemetry-instrumentation
6260
# opentelemetry-sdk
6361
# opentelemetry-semantic-conventions
6462
# opentelemetry-test-utils
65-
opentelemetry-instrumentation==0.52b0
63+
opentelemetry-instrumentation==0.58b0
6664
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
67-
opentelemetry-sdk==1.31.0
65+
opentelemetry-sdk==1.37.0
6866
# via opentelemetry-test-utils
69-
opentelemetry-semantic-conventions==0.52b0
67+
opentelemetry-semantic-conventions==0.58b0
7068
# via
7169
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
7270
# opentelemetry-instrumentation
7371
# opentelemetry-sdk
74-
opentelemetry-test-utils==0.52b0
72+
opentelemetry-test-utils==0.58b0
7573
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
76-
packaging==24.2
74+
packaging==25.0
7775
# via
7876
# build
7977
# opentelemetry-instrumentation
8078
# pytest
81-
pip-tools==7.4.1
79+
pip-tools==7.5.0
8280
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
83-
pluggy==1.5.0
81+
pluggy==1.6.0
8482
# via pytest
85-
propcache==0.2.0
83+
propcache==0.3.2
8684
# via yarl
87-
pydantic==2.10.6
85+
pydantic==2.11.9
8886
# via
8987
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
9088
# openai
91-
pydantic-core==2.27.2
89+
pydantic-core==2.33.2
9290
# via pydantic
91+
pygments==2.19.2
92+
# via pytest
9393
pyproject-hooks==1.2.0
9494
# via
9595
# build
9696
# pip-tools
97-
pytest==8.3.5
97+
pytest==8.4.2
9898
# via
9999
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
100100
# pytest-asyncio
101101
# pytest-vcr
102-
pytest-asyncio==0.24.0
102+
pytest-asyncio==1.2.0
103103
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
104104
pytest-vcr==1.0.2
105105
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
@@ -116,33 +116,38 @@ tomli==2.2.1
116116
# pytest
117117
tqdm==4.67.1
118118
# via openai
119-
typing-extensions==4.12.2
119+
typing-extensions==4.15.0
120120
# via
121-
# annotated-types
122121
# anyio
123122
# asgiref
123+
# exceptiongroup
124124
# multidict
125125
# openai
126+
# opentelemetry-api
126127
# opentelemetry-sdk
128+
# opentelemetry-semantic-conventions
127129
# pydantic
128130
# pydantic-core
131+
# pytest-asyncio
132+
# typing-inspection
133+
typing-inspection==0.4.1
134+
# via pydantic
129135
urllib3==1.26.20
130136
# via vcrpy
131-
vcrpy==6.0.2
137+
vcrpy==7.0.0
132138
# via
133139
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
134140
# pytest-vcr
135141
wheel==0.45.1
136142
# via pip-tools
137-
wrapt==1.17.2
143+
wrapt==1.17.3
138144
# via
139-
# deprecated
140145
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
141146
# opentelemetry-instrumentation
142147
# vcrpy
143-
yarl==1.15.2
148+
yarl==1.20.1
144149
# via vcrpy
145-
zipp==3.20.2
150+
zipp==3.23.0
146151
# via importlib-metadata
147152

148153
# The following packages are considered to be unsafe in a requirements file:

instrumentation/elastic-opentelemetry-instrumentation-openai/dev-requirements.txt

Lines changed: 43 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,31 @@
66
#
77
annotated-types==0.7.0
88
# via pydantic
9-
anyio==4.9.0
9+
anyio==4.10.0
1010
# via
1111
# httpx
1212
# openai
13-
asgiref==3.8.1
13+
asgiref==3.9.1
1414
# via opentelemetry-test-utils
15-
build==1.2.2.post1
15+
backports-asyncio-runner==1.2.0 ; python_version < '3.11'
16+
# via pytest-asyncio
17+
build==1.3.0
1618
# via pip-tools
17-
certifi==2025.1.31
19+
certifi==2025.8.3
1820
# via
1921
# httpcore
2022
# httpx
21-
click==8.1.8
23+
click==8.3.0
2224
# via pip-tools
23-
deprecated==1.2.18
24-
# via
25-
# opentelemetry-api
26-
# opentelemetry-semantic-conventions
2725
distro==1.9.0
2826
# via openai
29-
exceptiongroup==1.2.2
27+
exceptiongroup==1.3.0
3028
# via
3129
# anyio
3230
# pytest
33-
h11==0.14.0
31+
h11==0.16.0
3432
# via httpcore
35-
httpcore==1.0.7
33+
httpcore==1.0.9
3634
# via httpx
3735
httpx==0.27.2
3836
# via openai
@@ -41,63 +39,65 @@ idna==3.10
4139
# anyio
4240
# httpx
4341
# yarl
44-
importlib-metadata==8.6.1
42+
importlib-metadata==8.7.0
4543
# via opentelemetry-api
46-
iniconfig==2.0.0
44+
iniconfig==2.1.0
4745
# via pytest
48-
jiter==0.9.0
46+
jiter==0.11.0
4947
# via openai
50-
multidict==6.2.0
48+
multidict==6.6.4
5149
# via yarl
52-
numpy==2.2.4
50+
numpy==2.2.6
5351
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
54-
openai==1.66.5
52+
openai==1.108.0
5553
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
56-
opentelemetry-api==1.31.0
54+
opentelemetry-api==1.37.0
5755
# via
5856
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
5957
# opentelemetry-instrumentation
6058
# opentelemetry-sdk
6159
# opentelemetry-semantic-conventions
6260
# opentelemetry-test-utils
63-
opentelemetry-instrumentation==0.52b0
61+
opentelemetry-instrumentation==0.58b0
6462
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
65-
opentelemetry-sdk==1.31.0
63+
opentelemetry-sdk==1.37.0
6664
# via opentelemetry-test-utils
67-
opentelemetry-semantic-conventions==0.52b0
65+
opentelemetry-semantic-conventions==0.58b0
6866
# via
6967
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
7068
# opentelemetry-instrumentation
7169
# opentelemetry-sdk
72-
opentelemetry-test-utils==0.52b0
70+
opentelemetry-test-utils==0.58b0
7371
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
74-
packaging==24.2
72+
packaging==25.0
7573
# via
7674
# build
7775
# opentelemetry-instrumentation
7876
# pytest
79-
pip-tools==7.4.1
77+
pip-tools==7.5.0
8078
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
81-
pluggy==1.5.0
79+
pluggy==1.6.0
8280
# via pytest
83-
propcache==0.3.0
81+
propcache==0.3.2
8482
# via yarl
85-
pydantic==2.10.6
83+
pydantic==2.11.9
8684
# via
8785
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
8886
# openai
89-
pydantic-core==2.27.2
87+
pydantic-core==2.33.2
9088
# via pydantic
89+
pygments==2.19.2
90+
# via pytest
9191
pyproject-hooks==1.2.0
9292
# via
9393
# build
9494
# pip-tools
95-
pytest==8.3.5
95+
pytest==8.4.2
9696
# via
9797
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
9898
# pytest-asyncio
9999
# pytest-vcr
100-
pytest-asyncio==0.25.3
100+
pytest-asyncio==1.2.0
101101
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
102102
pytest-vcr==1.0.2
103103
# via elastic-opentelemetry-instrumentation-openai (pyproject.toml)
@@ -114,32 +114,38 @@ tomli==2.2.1
114114
# pytest
115115
tqdm==4.67.1
116116
# via openai
117-
typing-extensions==4.12.2
117+
typing-extensions==4.15.0
118118
# via
119119
# anyio
120120
# asgiref
121+
# exceptiongroup
121122
# multidict
122123
# openai
124+
# opentelemetry-api
123125
# opentelemetry-sdk
126+
# opentelemetry-semantic-conventions
124127
# pydantic
125128
# pydantic-core
126-
urllib3==2.3.0
129+
# pytest-asyncio
130+
# typing-inspection
131+
typing-inspection==0.4.1
132+
# via pydantic
133+
urllib3==2.5.0
127134
# via vcrpy
128135
vcrpy==7.0.0
129136
# via
130137
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
131138
# pytest-vcr
132139
wheel==0.45.1
133140
# via pip-tools
134-
wrapt==1.17.2
141+
wrapt==1.17.3
135142
# via
136-
# deprecated
137143
# elastic-opentelemetry-instrumentation-openai (pyproject.toml)
138144
# opentelemetry-instrumentation
139145
# vcrpy
140-
yarl==1.18.3
146+
yarl==1.20.1
141147
# via vcrpy
142-
zipp==3.21.0
148+
zipp==3.23.0
143149
# via importlib-metadata
144150

145151
# The following packages are considered to be unsafe in a requirements file:

0 commit comments

Comments
 (0)