Skip to content

Commit 9304017

Browse files
ocelotllzchen
andauthored
Move benchmarks for b3 propagator and grpc exporter (open-telemetry#4050)
Fixs open-telemetry#4049 Co-authored-by: Leighton Chen <[email protected]>
1 parent c883f6c commit 9304017

File tree

9 files changed

+8
-4
lines changed

9 files changed

+8
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest-benchmark==4.0.0

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

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pluggy==1.5.0
99
protobuf==3.20.3
1010
py-cpuinfo==9.0.0
1111
pytest==7.4.4
12-
pytest-benchmark==4.0.0
1312
tomli==2.0.1
1413
typing_extensions==4.10.0
1514
wrapt==1.16.0

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

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pluggy==1.5.0
99
protobuf==4.25.3
1010
py-cpuinfo==9.0.0
1111
pytest==7.4.4
12-
pytest-benchmark==4.0.0
1312
tomli==2.0.1
1413
typing_extensions==4.10.0
1514
wrapt==1.16.0

opentelemetry-sdk/test-requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ packaging==24.0
77
pluggy==1.5.0
88
py-cpuinfo==9.0.0
99
pytest==7.4.4
10-
pytest-benchmark==4.0.0
1110
tomli==2.0.1
1211
typing_extensions==4.10.0
1312
wrapt==1.16.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest-benchmark==4.0.0

propagator/opentelemetry-propagator-b3/test-requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ packaging==24.0
66
pluggy==1.5.0
77
py-cpuinfo==9.0.0
88
pytest==7.4.4
9-
pytest-benchmark==4.0.0
109
tomli==2.0.1
1110
typing_extensions==4.10.0
1211
wrapt==1.16.0

tox.ini

+6
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ envlist =
6262
py3{8,9,10,11,12}-test-opentelemetry-exporter-otlp-proto-grpc-{0,1}
6363
; intentionally excluded from pypy3
6464
lint-opentelemetry-exporter-otlp-proto-grpc
65+
benchmark-opentelemetry-exporter-otlp-proto-grpc
6566

6667
; The numbers at the end of the environment names
6768
; below mean these dependencies are being used:
@@ -91,6 +92,7 @@ envlist =
9192
py3{8,9,10,11,12}-test-opentelemetry-propagator-b3
9293
pypy3-test-opentelemetry-propagator-b3
9394
lint-opentelemetry-propagator-b3
95+
benchmark-opentelemetry-propagator-b3
9496

9597
py3{8,9,10,11,12}-test-opentelemetry-propagator-jaeger
9698
pypy3-test-opentelemetry-propagator-jaeger
@@ -160,6 +162,7 @@ commands_pre =
160162
opentelemetry-exporter-otlp-proto-grpc-0: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-0.txt
161163
opentelemetry-exporter-otlp-proto-grpc-1: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-1.txt
162164
lint-opentelemetry-exporter-otlp-proto-grpc: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-1.txt
165+
benchmark-exporter-otlp-proto-grpc: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/benchmark-requirements.txt
163166

164167
opentelemetry-exporter-otlp-proto-http-0: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0.txt
165168
opentelemetry-exporter-otlp-proto-http-1: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1.txt
@@ -178,6 +181,7 @@ commands_pre =
178181
exporter-zipkin-json: pip install -r {toxinidir}/exporter/opentelemetry-exporter-zipkin-json/test-requirements.txt
179182

180183
propagator-b3: pip install -r {toxinidir}/propagator/opentelemetry-propagator-b3/test-requirements.txt
184+
benchmark-opentelemetry-propagator-b3: pip install -r {toxinidir}/propagator/opentelemetry-propagator-b3/benchmark-requirements.txt
181185

182186
propagator-jaeger: pip install -r {toxinidir}/propagator/opentelemetry-propagator-jaeger/test-requirements.txt
183187

@@ -266,6 +270,7 @@ commands =
266270
lint-opentelemetry-exporter-otlp-proto-grpc: flake8 --config {toxinidir}/.flake8 {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc
267271
lint-opentelemetry-exporter-otlp-proto-grpc: pylint {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry
268272
lint-opentelemetry-exporter-otlp-proto-grpc: pylint {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/tests
273+
benchmark-opentelemetry-exporter-otlp-proto-grpc: pytest {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/benchmarks {posargs} --benchmark-json=exporter-otlp-proto-grpc-benchmark.json
269274

270275
test-opentelemetry-exporter-otlp-proto-http: pytest {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/tests {posargs}
271276
lint-opentelemetry-exporter-otlp-proto-http: black --diff --check --config {toxinidir}/pyproject.toml {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http
@@ -308,6 +313,7 @@ commands =
308313
lint-opentelemetry-propagator-b3: flake8 --config {toxinidir}/.flake8 {toxinidir}/propagator/opentelemetry-propagator-b3
309314
lint-opentelemetry-propagator-b3: pylint {toxinidir}/propagator/opentelemetry-propagator-b3/src/opentelemetry
310315
lint-opentelemetry-propagator-b3: pylint {toxinidir}/propagator/opentelemetry-propagator-b3/tests
316+
benchmark-opentelemetry-propagator-b3: pytest {toxinidir}/propagator/opentelemetry-propagator-b3/benchmarks {posargs} --benchmark-json=propagator-b3-benchmark.json
311317

312318
test-opentelemetry-propagator-jaeger: pytest {toxinidir}/propagator/opentelemetry-propagator-jaeger/tests {posargs}
313319
lint-opentelemetry-propagator-jaeger: black --diff --check --config {toxinidir}/pyproject.toml {toxinidir}/propagator/opentelemetry-propagator-jaeger

0 commit comments

Comments
 (0)