fastapi instrumentation (#890)

Co-authored-by: Leighton Chen <lechen@microsoft.com>
This commit is contained in:
Yusuke Tsutsumi 2020-07-15 06:49:12 +00:00 committed by GitHub
parent 5c59ea0831
commit 757f88f0af
1 changed files with 11 additions and 5 deletions

16
tox.ini
View File

@ -52,6 +52,11 @@ envlist =
py3{4,5,6,7,8}-test-instrumentation-elasticsearch{2,5,6,7} py3{4,5,6,7,8}-test-instrumentation-elasticsearch{2,5,6,7}
pypy3-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 ; opentelemetry-ext-flask
py3{4,5,6,7,8}-test-instrumentation-flask py3{4,5,6,7,8}-test-instrumentation-flask
pypy3-test-instrumentation-flask pypy3-test-instrumentation-flask
@ -187,8 +192,7 @@ deps =
elasticsearch7: elasticsearch-dsl>=7.0,<8.0 elasticsearch7: elasticsearch-dsl>=7.0,<8.0
elasticsearch7: elasticsearch>=7.0,<8.0 elasticsearch7: elasticsearch>=7.0,<8.0
setenv = setenv = mypy: MYPYPATH={toxinidir}/opentelemetry-api/src/
mypy: MYPYPATH={toxinidir}/opentelemetry-api/src/
changedir = changedir =
test-core-api: opentelemetry-api/tests test-core-api: opentelemetry-api/tests
@ -215,6 +219,7 @@ changedir =
test-instrumentation-wsgi: ext/opentelemetry-ext-wsgi/tests test-instrumentation-wsgi: ext/opentelemetry-ext-wsgi/tests
test-instrumentation-boto: ext/opentelemetry-ext-boto/tests test-instrumentation-boto: ext/opentelemetry-ext-boto/tests
test-instrumentation-botocore: ext/opentelemetry-ext-botocore/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-flask: ext/opentelemetry-ext-flask/tests
test-instrumentation-example-app: docs/examples/opentelemetry-example-app/tests test-instrumentation-example-app: docs/examples/opentelemetry-example-app/tests
test-instrumentation-sqlalchemy: ext/opentelemetry-ext-sqlalchemy/tests test-instrumentation-sqlalchemy: ext/opentelemetry-ext-sqlalchemy/tests
@ -236,7 +241,7 @@ changedir =
commands_pre = commands_pre =
; Install without -e to test the actual installation ; 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 ; 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. ; cases but it saves a lot of boilerplate in this file.
test: pip install {toxinidir}/opentelemetry-api {toxinidir}/opentelemetry-sdk {toxinidir}/tests/util 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] 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 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 asyncpg: pip install {toxinidir}/ext/opentelemetry-ext-asyncpg
@ -269,6 +273,8 @@ commands_pre =
django: pip install {toxinidir}/ext/opentelemetry-ext-django[test] 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] mysql: pip install {toxinidir}/ext/opentelemetry-ext-dbapi {toxinidir}/ext/opentelemetry-ext-mysql[test]
opencensusexporter: pip install {toxinidir}/ext/opentelemetry-ext-opencensusexporter opencensusexporter: pip install {toxinidir}/ext/opentelemetry-ext-opencensusexporter