-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Django instrumentation #593
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
Co-authored-by: Mathieu Hinderyckx <[email protected]>
Co-authored-by: alrex <[email protected]>
Co-authored-by: alrex <[email protected]>
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks! |
Initial Instrumentation Co-authored-by: Mauricio Vásquez <[email protected]> Co-authored-by: Mathieu Hinderyckx <[email protected]> Co-authored-by: alrex <[email protected]> Co-authored-by: Yusuke Tsutsumi <[email protected]>
…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