Skip to content

Commit 03effc7

Browse files
committed
add support to protobuf6
Signed-off-by: emdneto <[email protected]>
1 parent 59baf31 commit 03effc7

File tree

33 files changed

+860
-1829
lines changed

33 files changed

+860
-1829
lines changed

.github/workflows/lint_0.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
- name: Run tests
4848
run: tox -e lint-opentelemetry-api
4949

50-
lint-opentelemetry-proto-protobuf5:
51-
name: opentelemetry-proto-protobuf5
50+
lint-opentelemetry-proto-protobuf6:
51+
name: opentelemetry-proto-protobuf6
5252
runs-on: ubuntu-latest
5353
timeout-minutes: 30
5454
steps:
@@ -64,7 +64,7 @@ jobs:
6464
run: pip install tox
6565

6666
- name: Run tests
67-
run: tox -e lint-opentelemetry-proto-protobuf5
67+
run: tox -e lint-opentelemetry-proto-protobuf6
6868

6969
lint-opentelemetry-sdk:
7070
name: opentelemetry-sdk

.github/workflows/test_0.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ jobs:
142142
- name: Run tests
143143
run: tox -e pypy3-test-opentelemetry-api -- -ra
144144

145-
py39-test-opentelemetry-proto-protobuf5_ubuntu-latest:
146-
name: opentelemetry-proto-protobuf5 3.9 Ubuntu
145+
py39-test-opentelemetry-proto-protobuf6_ubuntu-latest:
146+
name: opentelemetry-proto-protobuf6 3.9 Ubuntu
147147
runs-on: ubuntu-latest
148148
timeout-minutes: 30
149149
steps:
@@ -159,10 +159,10 @@ jobs:
159159
run: pip install tox
160160

161161
- name: Run tests
162-
run: tox -e py39-test-opentelemetry-proto-protobuf5 -- -ra
162+
run: tox -e py39-test-opentelemetry-proto-protobuf6 -- -ra
163163

164-
py310-test-opentelemetry-proto-protobuf5_ubuntu-latest:
165-
name: opentelemetry-proto-protobuf5 3.10 Ubuntu
164+
py310-test-opentelemetry-proto-protobuf6_ubuntu-latest:
165+
name: opentelemetry-proto-protobuf6 3.10 Ubuntu
166166
runs-on: ubuntu-latest
167167
timeout-minutes: 30
168168
steps:
@@ -178,10 +178,10 @@ jobs:
178178
run: pip install tox
179179

180180
- name: Run tests
181-
run: tox -e py310-test-opentelemetry-proto-protobuf5 -- -ra
181+
run: tox -e py310-test-opentelemetry-proto-protobuf6 -- -ra
182182

183-
py311-test-opentelemetry-proto-protobuf5_ubuntu-latest:
184-
name: opentelemetry-proto-protobuf5 3.11 Ubuntu
183+
py311-test-opentelemetry-proto-protobuf6_ubuntu-latest:
184+
name: opentelemetry-proto-protobuf6 3.11 Ubuntu
185185
runs-on: ubuntu-latest
186186
timeout-minutes: 30
187187
steps:
@@ -197,10 +197,10 @@ jobs:
197197
run: pip install tox
198198

199199
- name: Run tests
200-
run: tox -e py311-test-opentelemetry-proto-protobuf5 -- -ra
200+
run: tox -e py311-test-opentelemetry-proto-protobuf6 -- -ra
201201

202-
py312-test-opentelemetry-proto-protobuf5_ubuntu-latest:
203-
name: opentelemetry-proto-protobuf5 3.12 Ubuntu
202+
py312-test-opentelemetry-proto-protobuf6_ubuntu-latest:
203+
name: opentelemetry-proto-protobuf6 3.12 Ubuntu
204204
runs-on: ubuntu-latest
205205
timeout-minutes: 30
206206
steps:
@@ -216,10 +216,10 @@ jobs:
216216
run: pip install tox
217217

218218
- name: Run tests
219-
run: tox -e py312-test-opentelemetry-proto-protobuf5 -- -ra
219+
run: tox -e py312-test-opentelemetry-proto-protobuf6 -- -ra
220220

221-
py313-test-opentelemetry-proto-protobuf5_ubuntu-latest:
222-
name: opentelemetry-proto-protobuf5 3.13 Ubuntu
221+
py313-test-opentelemetry-proto-protobuf6_ubuntu-latest:
222+
name: opentelemetry-proto-protobuf6 3.13 Ubuntu
223223
runs-on: ubuntu-latest
224224
timeout-minutes: 30
225225
steps:
@@ -235,10 +235,10 @@ jobs:
235235
run: pip install tox
236236

237237
- name: Run tests
238-
run: tox -e py313-test-opentelemetry-proto-protobuf5 -- -ra
238+
run: tox -e py313-test-opentelemetry-proto-protobuf6 -- -ra
239239

240-
pypy3-test-opentelemetry-proto-protobuf5_ubuntu-latest:
241-
name: opentelemetry-proto-protobuf5 pypy-3.9 Ubuntu
240+
pypy3-test-opentelemetry-proto-protobuf6_ubuntu-latest:
241+
name: opentelemetry-proto-protobuf6 pypy-3.9 Ubuntu
242242
runs-on: ubuntu-latest
243243
timeout-minutes: 30
244244
steps:
@@ -254,7 +254,7 @@ jobs:
254254
run: pip install tox
255255

256256
- name: Run tests
257-
run: tox -e pypy3-test-opentelemetry-proto-protobuf5 -- -ra
257+
run: tox -e pypy3-test-opentelemetry-proto-protobuf6 -- -ra
258258

259259
py39-test-opentelemetry-sdk_ubuntu-latest:
260260
name: opentelemetry-sdk 3.9 Ubuntu
@@ -2231,8 +2231,8 @@ jobs:
22312231
- name: Run tests
22322232
run: tox -e pypy3-test-opentelemetry-api -- -ra
22332233

2234-
py39-test-opentelemetry-proto-protobuf5_windows-latest:
2235-
name: opentelemetry-proto-protobuf5 3.9 Windows
2234+
py39-test-opentelemetry-proto-protobuf6_windows-latest:
2235+
name: opentelemetry-proto-protobuf6 3.9 Windows
22362236
runs-on: windows-latest
22372237
timeout-minutes: 30
22382238
steps:
@@ -2251,10 +2251,10 @@ jobs:
22512251
run: git config --system core.longpaths true
22522252

22532253
- name: Run tests
2254-
run: tox -e py39-test-opentelemetry-proto-protobuf5 -- -ra
2254+
run: tox -e py39-test-opentelemetry-proto-protobuf6 -- -ra
22552255

2256-
py310-test-opentelemetry-proto-protobuf5_windows-latest:
2257-
name: opentelemetry-proto-protobuf5 3.10 Windows
2256+
py310-test-opentelemetry-proto-protobuf6_windows-latest:
2257+
name: opentelemetry-proto-protobuf6 3.10 Windows
22582258
runs-on: windows-latest
22592259
timeout-minutes: 30
22602260
steps:
@@ -2273,10 +2273,10 @@ jobs:
22732273
run: git config --system core.longpaths true
22742274

22752275
- name: Run tests
2276-
run: tox -e py310-test-opentelemetry-proto-protobuf5 -- -ra
2276+
run: tox -e py310-test-opentelemetry-proto-protobuf6 -- -ra
22772277

2278-
py311-test-opentelemetry-proto-protobuf5_windows-latest:
2279-
name: opentelemetry-proto-protobuf5 3.11 Windows
2278+
py311-test-opentelemetry-proto-protobuf6_windows-latest:
2279+
name: opentelemetry-proto-protobuf6 3.11 Windows
22802280
runs-on: windows-latest
22812281
timeout-minutes: 30
22822282
steps:
@@ -2295,10 +2295,10 @@ jobs:
22952295
run: git config --system core.longpaths true
22962296

22972297
- name: Run tests
2298-
run: tox -e py311-test-opentelemetry-proto-protobuf5 -- -ra
2298+
run: tox -e py311-test-opentelemetry-proto-protobuf6 -- -ra
22992299

2300-
py312-test-opentelemetry-proto-protobuf5_windows-latest:
2301-
name: opentelemetry-proto-protobuf5 3.12 Windows
2300+
py312-test-opentelemetry-proto-protobuf6_windows-latest:
2301+
name: opentelemetry-proto-protobuf6 3.12 Windows
23022302
runs-on: windows-latest
23032303
timeout-minutes: 30
23042304
steps:
@@ -2317,10 +2317,10 @@ jobs:
23172317
run: git config --system core.longpaths true
23182318

23192319
- name: Run tests
2320-
run: tox -e py312-test-opentelemetry-proto-protobuf5 -- -ra
2320+
run: tox -e py312-test-opentelemetry-proto-protobuf6 -- -ra
23212321

2322-
py313-test-opentelemetry-proto-protobuf5_windows-latest:
2323-
name: opentelemetry-proto-protobuf5 3.13 Windows
2322+
py313-test-opentelemetry-proto-protobuf6_windows-latest:
2323+
name: opentelemetry-proto-protobuf6 3.13 Windows
23242324
runs-on: windows-latest
23252325
timeout-minutes: 30
23262326
steps:
@@ -2339,10 +2339,10 @@ jobs:
23392339
run: git config --system core.longpaths true
23402340

23412341
- name: Run tests
2342-
run: tox -e py313-test-opentelemetry-proto-protobuf5 -- -ra
2342+
run: tox -e py313-test-opentelemetry-proto-protobuf6 -- -ra
23432343

2344-
pypy3-test-opentelemetry-proto-protobuf5_windows-latest:
2345-
name: opentelemetry-proto-protobuf5 pypy-3.9 Windows
2344+
pypy3-test-opentelemetry-proto-protobuf6_windows-latest:
2345+
name: opentelemetry-proto-protobuf6 pypy-3.9 Windows
23462346
runs-on: windows-latest
23472347
timeout-minutes: 30
23482348
steps:
@@ -2361,7 +2361,7 @@ jobs:
23612361
run: git config --system core.longpaths true
23622362

23632363
- name: Run tests
2364-
run: tox -e pypy3-test-opentelemetry-proto-protobuf5 -- -ra
2364+
run: tox -e pypy3-test-opentelemetry-proto-protobuf6 -- -ra
23652365

23662366
py39-test-opentelemetry-sdk_windows-latest:
23672367
name: opentelemetry-sdk 3.9 Windows

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323
([#4637](https://github.com/open-telemetry/opentelemetry-python/pull/4637))
2424
- Logging API accepts optional `context`; deprecates `trace_id`, `span_id`, `trace_flags`.
2525
([#4597](https://github.com/open-telemetry/opentelemetry-python/pull/4597))
26+
- Add support to Protobuf 6 and regenerate proto files; Drop support to Protobuf 5
27+
([#4643](https://github.com/open-telemetry/opentelemetry-python/pull/4643))
2628

2729
## Version 1.34.0/0.55b0 (2025-06-04)
2830

docs-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ opentracing~=2.2.0
2525
thrift~=0.10
2626
wrapt>=1.0.0,<2.0.0
2727
markupsafe~=2.0
28-
protobuf==5.26.1
28+
protobuf==6.31.1

exporter/opentelemetry-exporter-otlp-proto-common/test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ importlib-metadata==6.11.0
33
iniconfig==2.0.0
44
packaging==24.0
55
pluggy==1.5.0
6-
protobuf==5.26.1
6+
protobuf==6.31.1
77
py-cpuinfo==9.0.0
88
pytest==7.4.4
99
tomli==2.0.1

exporter/opentelemetry-exporter-otlp-proto-grpc/pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ classifiers = [
2626
"Programming Language :: Python :: 3.13",
2727
]
2828
dependencies = [
29-
"googleapis-common-protos ~= 1.52",
30-
"grpcio >= 1.63.2, < 2.0.0; python_version < '3.13'",
31-
"grpcio >= 1.66.2, < 2.0.0; python_version >= '3.13'",
29+
"googleapis-common-protos ~= 1.70",
30+
"grpcio >= 1.73.0, < 2.0.0",
3231
"opentelemetry-api ~= 1.15",
3332
"opentelemetry-proto == 1.35.0.dev",
3433
"opentelemetry-sdk ~= 1.35.0.dev",

exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
asgiref==3.7.2
2-
grpcio==1.66.2
2+
googleapis-common-protos==1.70.0
3+
grpcio==1.73.0
4+
protobuf==6.31.1
35
importlib-metadata==6.11.0
46
iniconfig==2.0.0
57
packaging==24.0
68
pluggy==1.5.0
7-
protobuf==5.26.1
89
py-cpuinfo==9.0.0
910
pytest==7.4.4
1011
tomli==2.0.1
1112
typing_extensions==4.10.0
1213
wrapt==1.16.0
1314
zipp==3.19.2
14-
googleapis-common-protos==1.63.2
1515
-e opentelemetry-api
1616
-e tests/opentelemetry-test-utils
1717
-e exporter/opentelemetry-exporter-otlp-proto-common

exporter/opentelemetry-exporter-otlp-proto-http/test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
asgiref==3.7.2
22
certifi==2024.7.4
33
charset-normalizer==3.3.2
4-
googleapis-common-protos==1.63.2
4+
googleapis-common-protos==1.70.0
55
idna==3.7
66
importlib-metadata==6.11.0
77
iniconfig==2.0.0
88
packaging==24.0
99
pluggy==1.5.0
10-
protobuf==5.26.1
10+
protobuf==6.31.1
1111
py-cpuinfo==9.0.0
1212
pytest==7.4.4
1313
PyYAML==6.0.1

gen-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use caution when bumping this version to ensure compatibility with the currently supported protobuf version.
22
# Pinning this to the oldest grpcio version that supports protobuf 5 helps avoid RuntimeWarning messages
33
# from the generated protobuf code and ensures continued stability for newer grpcio versions.
4-
grpcio-tools==1.63.2
5-
mypy-protobuf~=3.5.0
4+
grpcio-tools==1.73.0
5+
mypy-protobuf==3.6.0

opentelemetry-proto/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3.13",
2626
]
2727
dependencies = [
28-
"protobuf>=5.0, < 6.0",
28+
"protobuf>=6.0, < 7.0",
2929
]
3030

3131
[project.urls]

0 commit comments

Comments
 (0)