-
Notifications
You must be signed in to change notification settings - Fork 626
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 OpenTracing shim example #282
Conversation
Codecov Report
@@ Coverage Diff @@
## master #282 +/- ##
==========================================
- Coverage 85.32% 85.29% -0.03%
==========================================
Files 38 38
Lines 1928 1931 +3
Branches 227 227
==========================================
+ Hits 1645 1647 +2
- Misses 218 219 +1
Partials 65 65
Continue to review full report at Codecov.
|
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 didn't try it myself by generally it looks fine.
I added comments about some details I spotted.
Ran through the example. Other than the missing |
009aaa2
to
6ffa86c
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.
Please review, I tried the example itself and it works fine 👍
ext/opentelemetry-ext-opentracing-shim/src/opentelemetry/ext/opentracing_shim/__init__.py
Outdated
Show resolved
Hide resolved
Thanks for fixing this @ocelotl! Approved with a non-blocking comment. |
I see that now the PR has also some changes to the code of the shim, are those changes necessary?, if yes my suggestion would be to open a PR containing only those changes, IMO a PR that implements an example but also modifies the source code creates confusion. |
This reverts commit 5a224ad.
It looks like 5a224ad was necessary to avoid some false-positive |
@mauriciovasquezbernal this should be ready to go now that #376 is in. |
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 don't really like that we need to work around pylint here, but otherwise LGTM.
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.
Co-Authored-By: Christian Neumüller <christian+github@neumueller.me>
Co-Authored-By: Mauricio Vásquez <mauricio@kinvolk.io>
This reverts commit 9d3ef06.
@mauriciovasquezbernal 0239c08 is the last revert (of a revert of a revert...). |
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!
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com> Co-authored-by: Christian Neumüller <christian+github@neumueller.me> Co-authored-by: Mauricio Vásquez <mauricio@kinvolk.io>
I was working on a demo for OpenTracing compatibility and thought it'd be useful to include as an example here.
I wrote this in the style of #277, and copied some boilerplate text from that PR. We should consider making examples work with any backend, but I've only included Jaeger for now.
@johananl, @codeboten, @carlosalberto, let me know what you think!