Add Django instrumentation#593
Conversation
mauriciovasquezbernal
left a comment
There was a problem hiding this comment.
I looks very promising too. Just some small comments around.
- An entry for the documentation is missing
- I don't know if that's the correct place for the example, maybe we want to move that to docs/examples but I'd like to get more feedback on it. Btw, how I can run the example? A readme would be nice.
- I think more tests should be added.
ext/opentelemetry-ext-django/src/opentelemetry/ext/django/middleware.py
Outdated
Show resolved
Hide resolved
c82762b to
ca85492
Compare
|
I'm interested in using opentelemetry for my local Django app which is 2.2. how do I run the tests for this locally so I can debug to see what's failing the tests? |
4d8ca52 to
3ddb381
Compare
@simkimsia Sorry for the late reply. To debug what is failing here you can do this:
Please contact me if you have any issues. |
|
Looks like this PR already has got stuff from blocking PR #567 |
f3a044f to
7baf328
Compare
ext/opentelemetry-ext-django/src/opentelemetry/ext/django/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-django/src/opentelemetry/ext/django/__init__.py
Outdated
Show resolved
Hide resolved
74491a7 to
f1908dd
Compare
codeboten
left a comment
There was a problem hiding this comment.
I still need to run the example, but this is looking pretty good so far.
ext/opentelemetry-ext-django/example/instrumentation_example/asgi.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-django/src/opentelemetry/ext/django/__init__.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Mathieu Hinderyckx <mathieu.hinderyckx@gmail.com>
Co-authored-by: Mathieu Hinderyckx <mathieu.hinderyckx@gmail.com>
Co-authored-by: alrex <alrex.boten@gmail.com>
Co-authored-by: alrex <alrex.boten@gmail.com>
ext/opentelemetry-ext-django/src/opentelemetry/ext/django/middleware.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-django/src/opentelemetry/ext/django/middleware.py
Outdated
Show resolved
Hide resolved
|
Looks good. Just a couple of comments on example files. |
|
@lzchen addressed all your comments, please take a look |
|
Thanks! |
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>
…pen-telemetry#593) Transpile to es2017 to ensure compatiblity with Node.Js 8. Otherwise use of e.g. the optional chaining operator ?. supported since typescript 3.7 results in js not running on nodejs 8. Es2017 is the minimum to get native await support.
Fixes #592