This message was deleted.
s
This message was deleted.
a
My docker-compose for the web app has the following
Copy code
- OTEL_EXPORTER_OTLP_SPAN_INSECURE=true
       - OTEL_EXPORTER_OTLP_METRIC_INSECURE=true
       - OTEL_METRICS_EXPORTER=none
       - OTEL_SERVICE_NAME=web1
       - OTEL_EXPORTER_OTLP_ENDPOINT=host.docker.internal:4317
I can hit "host.docker.internal:4317" from my Application, if i docker-compose run .. bash and curl/netcat/telnet to the endpoint
I have also tried without the
Copy code
- OTEL_EXPORTER_OTLP_SPAN_INSECURE=true
       - OTEL_EXPORTER_OTLP_METRIC_INSECURE=true
settings, but I get the same error
p
@Alan Ryan are you able to see your application data in SigNoz?
cc: @Srikanth Chekuri might have more insights here
a
Hi @Pranay no, I don't see any data flow -I am going to run sample-django app now and see if that behaves differrently
s
@Alan Ryan The env
OTEL_EXPORTER_OTLP_*_INSECURE
are never read by SDK so it doesn't change anything. What does your setup look like? Are you running SigNoz on your machine and you services with docker-compose? It shouldn't be the issue but did you try specifying the scheme in endpoint
<http://host.docker.internal:4317>
?
a
Hi @Srikanth Chekuri - I am running a the dockerised clickhouse on my local machine. With hot rod running, this was giving me traces, metrics etc I then added a shared docker network, to the docker-compose, and removed hot-rod. restarted the apps came up , I could see no services listed as I expected I then bring up my dockerised django, with the same shared network
s
If your django is already part of same network why are you using host.docker.interal?
a
debugging and trying various 'hints' I saw. I had it set to
clickhouse-setup_otel-collector-metrics_1
but I got same error
s
That's a container name not the service name. If the djano app is already part of same n/w use the
<http://otel-collector:4317>
👀 1
a
Same issues, I see the same message in the logs, when I run a bash shell in the container I get
Copy code
root@0e12f257feb1:/home/app/# curl otel-collector:4317
curl: (1) Received HTTP/0.9 when not allowed
going to try sample-django app and see what's different
s
You can't test the grpc server (on port 4317) with curl.
a
just establishing that it was reachable
When I bring up the sample-django app (docker run version with --network==my-shared-net) I get the same error, but also a SSL error
Copy code
Transient error StatusCode.UNAVAILABLE encountered while exporting span batch, retrying in 8s.
E0616 13:59:39.946656170      18 <http://ssl_transport_security.cc:1495]|ssl_transport_security.cc:1495]> Handshake failed with fatal error SSL_ERROR_SSL: error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER.
s
You are having issues with the python gRPC.
a
ahh..
s
Let's try with HTTP exporter meanwhile. Use following and check again
Copy code
OTEL_TRACES_EXPORTER=otlp_proto_http
OTEL_EXPORTER_OTLP_ENDPOINT=<http://otel-collector:4318>
a
👍
😢 same message 🤔 Transient error StatusCode.UNAVAILABLE encountered while exporting span batch, retrying in 32s.
thanks for your help wit this, I realise remote debugging is very hard)
s
there is definitely some issue with your n/w setup.
a
yeah, starting to this this is local. I'll do some debugging and get back to you 🙇
551 Views