opentracing-shim: add testbed for otshim (#727)

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] https://github.com/gevent/gevent/issues/1407

Co-authored-by: Mauricio Vásquez <mauricio@kinvolk.io>
Co-authored-by: alrex <aboten@lightstep.com>
This commit is contained in:
Yusuke Tsutsumi 2020-06-02 20:37:36 -07:00 committed by GitHub
parent 0a37a10713
commit 82116bcfe9
1 changed files with 6 additions and 2 deletions

View File

@ -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
@ -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