fastapi instrumentation (#890)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
This commit is contained in:
parent
5c59ea0831
commit
757f88f0af
16
tox.ini
16
tox.ini
|
|
@ -52,6 +52,11 @@ envlist =
|
|||
py3{4,5,6,7,8}-test-instrumentation-elasticsearch{2,5,6,7}
|
||||
pypy3-test-instrumentation-elasticsearch{2,5,6,7}
|
||||
|
||||
; opentelemetry-instrumentation-fastapi
|
||||
; fastapi only supports 3.6 and above.
|
||||
py3{6,7,8}-test-instrumentation-fastapi
|
||||
pypy3-test-instrumentation-fastapi
|
||||
|
||||
; opentelemetry-ext-flask
|
||||
py3{4,5,6,7,8}-test-instrumentation-flask
|
||||
pypy3-test-instrumentation-flask
|
||||
|
|
@ -187,8 +192,7 @@ deps =
|
|||
elasticsearch7: elasticsearch-dsl>=7.0,<8.0
|
||||
elasticsearch7: elasticsearch>=7.0,<8.0
|
||||
|
||||
setenv =
|
||||
mypy: MYPYPATH={toxinidir}/opentelemetry-api/src/
|
||||
setenv = mypy: MYPYPATH={toxinidir}/opentelemetry-api/src/
|
||||
|
||||
changedir =
|
||||
test-core-api: opentelemetry-api/tests
|
||||
|
|
@ -215,6 +219,7 @@ changedir =
|
|||
test-instrumentation-wsgi: ext/opentelemetry-ext-wsgi/tests
|
||||
test-instrumentation-boto: ext/opentelemetry-ext-boto/tests
|
||||
test-instrumentation-botocore: ext/opentelemetry-ext-botocore/tests
|
||||
test-instrumentation-fastapi: ext/opentelemetry-instrumentation-fastapi/tests
|
||||
test-instrumentation-flask: ext/opentelemetry-ext-flask/tests
|
||||
test-instrumentation-example-app: docs/examples/opentelemetry-example-app/tests
|
||||
test-instrumentation-sqlalchemy: ext/opentelemetry-ext-sqlalchemy/tests
|
||||
|
|
@ -236,7 +241,7 @@ changedir =
|
|||
|
||||
commands_pre =
|
||||
; Install without -e to test the actual installation
|
||||
py3{4,5,6,7}: python -m pip install -U pip setuptools wheel
|
||||
py3{4,5,6,7,8}: python -m pip install -U pip setuptools wheel
|
||||
; Install common packages for all the tests. These are not needed in all the
|
||||
; cases but it saves a lot of boilerplate in this file.
|
||||
test: pip install {toxinidir}/opentelemetry-api {toxinidir}/opentelemetry-sdk {toxinidir}/tests/util
|
||||
|
|
@ -252,9 +257,8 @@ commands_pre =
|
|||
|
||||
grpc: pip install {toxinidir}/ext/opentelemetry-ext-grpc[test]
|
||||
|
||||
wsgi,flask,django,asgi,pyramid,starlette: pip install {toxinidir}/tests/util
|
||||
wsgi,flask,django,pyramid: pip install {toxinidir}/ext/opentelemetry-ext-wsgi
|
||||
asgi,starlette: pip install {toxinidir}/ext/opentelemetry-ext-asgi
|
||||
asgi,starlette,fastapi: pip install {toxinidir}/ext/opentelemetry-ext-asgi
|
||||
|
||||
asyncpg: pip install {toxinidir}/ext/opentelemetry-ext-asyncpg
|
||||
|
||||
|
|
@ -269,6 +273,8 @@ commands_pre =
|
|||
|
||||
django: pip install {toxinidir}/ext/opentelemetry-ext-django[test]
|
||||
|
||||
fastapi: pip install {toxinidir}/ext/opentelemetry-instrumentation-fastapi[test]
|
||||
|
||||
mysql: pip install {toxinidir}/ext/opentelemetry-ext-dbapi {toxinidir}/ext/opentelemetry-ext-mysql[test]
|
||||
|
||||
opencensusexporter: pip install {toxinidir}/ext/opentelemetry-ext-opencensusexporter
|
||||
|
|
|
|||
Loading…
Reference in New Issue