feat: add OpenTelemetry tracing to spanner calls#107
feat: add OpenTelemetry tracing to spanner calls#107larkee merged 7 commits intogoogleapis:masterfrom
Conversation
013f11f to
039ff4f
Compare
039ff4f to
9b4972e
Compare
larkee
left a comment
There was a problem hiding this comment.
I've had a quick look over and I'm happy with how it's looking. Just pointed out some things to address.
| default(session) | ||
|
|
||
|
|
||
| @nox.session(python=["2.7", "3.7"]) |
There was a problem hiding this comment.
Removed python2.7 from unit/system tests (since OpenTelemetry does not support 2.7). However since OT is an optional dependency with some extra effort the tests could keep using 2.7, is this desired?
Strictly speaking, Python 2.7 is meant to be deprecated. However, removing it is considered a breaking change. We have a breaking change coming up that we're waiting on. How much work is it to keep using 2.7?
There was a problem hiding this comment.
added back 2.7 support - just had to wrap all the OT tests in a dependency check and not install OT if using 2.7
There was a problem hiding this comment.
@larkee Do you have an estimate when will python 2.7 be deprecated?
If we need to merge this first before deprecating 2.7, then we need to remember to remove the dependency checks in OT tests when 2.7 is deprecated.
There was a problem hiding this comment.
Python 2.7 will be deprecated with the microgenerator migration which is currently scheduled for the end of August. I am happy to remove the dependency checks during that migration myself.
ef30b12 to
bee0e58
Compare
hengfengli
left a comment
There was a problem hiding this comment.
Thanks for working on this. This looks great to me. 👍
My major concern is HAS_OPENTELEMETRY_INSTALLED. I think we should get rid of this because it adds a lot of redundant code.
25a6ec0 to
0ad6be0
Compare
0ad6be0 to
de4b7e7
Compare
|
what would it take to get this PR moving again? |
|
@larkee It looks good to me. Can we merge this in? |
larkee
left a comment
There was a problem hiding this comment.
LGTM with the suggested doc fix 👍
Thanks again for your work and your patience!
Pool/gRPC metrics are also on my TODO list, they will come in a seperate PR once some issues with the OpenTelemetry Metrics SDK are worked out :)