https://signoz.io logo
#support
Title
# support
a

alan

05/05/2022, 10:07 AM
@Srikanth Chekuri @Prashant Shahi @Ankit Nayan I created another django application which use
FROM tensorflow/tensorflow:2.4.0
,this include python 3.6, when the application startup , I got this message
You are using Python 3.6. This version does not support timestamps with nanosecond precision and the OpenTelemetry SDK will use millisecond precision instead. Please refer to PEP 564 for more information. Please upgrade to Python 3.7 or newer to use nanosecond precision.
you can see there is GET has been sent but Signoz can't retrieve any information. is this python issue cause of telemetry data can' t be sent to signoz-otel-collector which cause of Signoz not showing the data correctly.
s

Srikanth Chekuri

05/05/2022, 12:59 PM
What is the worker class you are using with gunicorn? Worker classes like gevent, eventler are not supported by otel-py sdk. Are you using the otel operator to auto instrument? The operator doesn't support the grpc https://github.com/open-telemetry/opentelemetry-operator/blob/main/autoinstrumentation/python/requirements.txt#L2. All of these issues are more related to otel than signoz
You should use py>=37 since 36 is already past EOL.
a

alan

05/06/2022, 1:21 AM
because of compatible issue with boto3 lib, I used below , so what I should change ? last time I used below but 0.28b0, and change to 4318 port as you guided it is working @Srikanth Chekuri
Copy code
opentelemetry-distro==0.27b0
opentelemetry-instrumentation==0.27b0
opentelemetry-exporter-otlp==1.9.0
s

Srikanth Chekuri

05/06/2022, 1:33 AM
There are many things at play. What is the worker class you are using wit gunicorn?
a

alan

05/06/2022, 2:03 AM
work class is gevent @Srikanth Chekuri
s

Srikanth Chekuri

05/06/2022, 3:01 AM
It is not (probably will not be) supported by opentelemetry-python
You will run into issue with gevent, eventlet or any other class which modify the python std socket lib.
a

alan

05/06/2022, 3:03 AM
do we have those compatible doc can be referenced in order to avoid this issue ? and what your suggested use for work class ? gthread?eventlet?
s

Srikanth Chekuri

05/06/2022, 3:05 AM
I don't think it is mentioned anywhere in http://opentelemetry-python.readthedocs.io
a

alan

05/06/2022, 3:07 AM
I dont see that in above link
s

Srikanth Chekuri

05/06/2022, 3:08 AM
What do you not see?
a

alan

05/06/2022, 3:09 AM
I didnt' see any work class mentioned
Copy code
sync
eventlet
gevent 
tornado 
gthread
so you mean we just can use the python std work class ? sorry I did't get
s

Srikanth Chekuri

05/06/2022, 3:11 AM
There is no python std worker class. I think it works with sync or tornado.
a

alan

05/06/2022, 3:13 AM
OK I 'll check , thanks
I am really confused why otel-collector/opentelemetry-python not support gunicorn gevent? we didn't use grpc but just send http @Srikanth Chekuri any workround ?
s

Srikanth Chekuri

05/06/2022, 6:05 AM
You are mixing up lot of stuff. This is not an issue with collector and it has nothing to do with grpc. gevent is does some magical stuff by monkey patching and doesn't play well with context propagation so that is what the not-supported means.
a

alan

05/06/2022, 6:21 AM
got it. thanks
5 Views