Add Django instrumentation (#593)

Initial Instrumentation

Co-authored-by: Mauricio Vásquez <mauricio@kinvolk.io>
Co-authored-by: Mathieu Hinderyckx <mathieu.hinderyckx@gmail.com>
Co-authored-by: alrex <alrex.boten@gmail.com>
Co-authored-by: Yusuke Tsutsumi <yusuke@tsutsumi.io>
This commit is contained in:
Diego Hurtado
2020-05-06 16:27:01 -06:00
committed by GitHub
parent ba030be66d
commit 988962d24e
2 changed files with 11 additions and 4 deletions

View File

@ -2,7 +2,8 @@
ignore =
E501 # line too long, defer to black
F401 # unused import, defer to pylint
W503 # allow line breaks after binary ops, not after
W503 # allow line breaks before binary ops
W504 # allow line breaks after binary ops
E203 # allow whitespace before ':' (https://github.com/psf/black#slices)
exclude =
.bzr

12
tox.ini
View File

@ -28,6 +28,9 @@ envlist =
py3{4,5,6,7,8}-test-example-http
pypy3-test-example-http
py3{6,7,8}-test-ext-django
pypy3-test-ext-django
; opentelemetry-ext-dbapi
py3{4,5,6,7,8}-test-ext-dbapi
pypy3-test-ext-dbapi
@ -127,6 +130,7 @@ changedir =
test-ext-requests: ext/opentelemetry-ext-requests/tests
test-ext-jaeger: ext/opentelemetry-ext-jaeger/tests
test-ext-dbapi: ext/opentelemetry-ext-dbapi/tests
test-ext-django: ext/opentelemetry-ext-django/tests
test-ext-mysql: ext/opentelemetry-ext-mysql/tests
test-ext-otcollector: ext/opentelemetry-ext-otcollector/tests
test-ext-prometheus: ext/opentelemetry-ext-prometheus/tests
@ -168,13 +172,15 @@ commands_pre =
grpc: pip install {toxinidir}/ext/opentelemetry-ext-grpc[test]
wsgi,flask: pip install {toxinidir}/ext/opentelemetry-ext-wsgi
flask: pip install {toxinidir}/opentelemetry-auto-instrumentation
wsgi,flask,django: pip install {toxinidir}/tests/util
wsgi,flask,django: pip install {toxinidir}/ext/opentelemetry-ext-wsgi
flask,django: pip install {toxinidir}/opentelemetry-auto-instrumentation
flask: pip install {toxinidir}/ext/opentelemetry-ext-flask[test]
dbapi: pip install {toxinidir}/ext/opentelemetry-ext-dbapi[test]
django: pip install {toxinidir}/ext/opentelemetry-ext-django[test]
mysql: pip install {toxinidir}/ext/opentelemetry-ext-dbapi
mysql: pip install {toxinidir}/ext/opentelemetry-ext-mysql[test]