Skip to content

Commit

Permalink
opentracing-shim: add testbed for otshim (open-telemetry#727)
Browse files Browse the repository at this point in the history
This commit ports the OpenTracing testbed[1] to check that the ot-shim is
working as expected using different frameworks.

Gevent doesn't support context vars yet[2], so those tests are not compatible
with opentelemetry and were not ported.

[1] https://github.com/opentracing/opentracing-python/tree/master/testbed
[2] gevent/gevent#1407

Co-authored-by: Mauricio Vásquez <[email protected]>
Co-authored-by: alrex <[email protected]>
  • Loading branch information
3 people authored Jun 3, 2020
1 parent 0a37a10 commit 82116bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,11 @@ commands_pre =

jaeger: pip install {toxinidir}/ext/opentelemetry-ext-jaeger

datadog: pip install {toxinidir}/opentelemetry-sdk {toxinidir}/ext/opentelemetry-ext-datadog

opentracing-shim: pip install {toxinidir}/opentelemetry-sdk
opentracing-shim: pip install {toxinidir}/ext/opentelemetry-ext-opentracing-shim

datadog: pip install {toxinidir}/opentelemetry-sdk {toxinidir}/ext/opentelemetry-ext-datadog

zipkin: pip install {toxinidir}/ext/opentelemetry-ext-zipkin

sqlalchemy: pip install {toxinidir}/opentelemetry-auto-instrumentation {toxinidir}/ext/opentelemetry-ext-sqlalchemy
Expand Down Expand Up @@ -258,6 +259,9 @@ commands =
; implicit Any due to unfollowed import would result).
mypyinstalled: mypy --namespace-packages opentelemetry-api/tests/mypysmoke.py --strict

[testenv:py34-test-opentracing-shim]
commands =
pytest --ignore-glob='*[asyncio].py'

[testenv:lint]
basepython: python3.8
Expand Down

0 comments on commit 82116bc

Please sign in to comment.