Guys, I use some google libs, such as Pub/Sub, wh...
# support
a
Guys, I use some google libs, such as Pub/Sub, when I start this way:
Copy code
opentelemetry-instrument --traces_exporter otlp_proto_grpc --metrics_exporter otlp_proto_grpc python consumer.py
Gives this error:
Copy code
Thread-ConsumeBidirectionalStream caught unexpected exception 'generator' object has no attribute 'add_done_callback' and will exit.
Traceback (most recent call last):
And with that my python instructions don’t work, has anyone faced this error?
s
This looks like bug because of the grpc instrumentation.
a
any tips?
s
You can probably disable the grpc instrumentation or wait for the bug to be fixed. Or there is a chance of instrumentation working with older grpc lib version.
a
I’m making use of google’s lib to consume google’s Pub/Sub queues. This is what consumer.py does
I’m going to try to go back to python 3.6 and consume the older libs, what’s your opinion on this?
s
I wouldn’t recommend that. The minimum supported version is 3.7. The auto instrumentation for the google pub sub is not really good. So I would suggest not to rely on
opentelemetry-instrument
for this.
a
thank you for the tips