Priyansh
07/18/2022, 11:36 AMDecision Point Pvt Ltd
.
We are planning to use sigNoz with our one of the application as of now. We were already using OpenTelemetry with Jaeger with manual instrumentation mode.
If you have some time can you guide me to integrate SigNoz
. I’ve installed SigNoz and run it on a virtual machine but application is not able to get the spans/services associated with my application”
Anyone with the right information, let’s help them with the migration.Kanika Garg
07/18/2022, 12:00 PMPranay
Kanika Garg
07/18/2022, 1:27 PMOTEL_RESOURCE_ATTRIBUTES=service.name=Botproject_8085 OTEL_EXPORTER_OTLP_ENDPOINT="<http://localhost:4318>" opentelemetry-instrument --traces_exporter otlp_proto_http gunicorn --daemon --workers 1 -b :8085 'bot_project.wsgi:application' --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output --timeout 3600
• With port 4317 I'm getting this error in my application
OTEL_RESOURCE_ATTRIBUTES=service.name=Botproject_8085 OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317" opentelemetry-instrument --traces_exporter otlp_proto_http gunicorn --daemon --workers 1 -b :8085 'bot_project.wsgi:application' --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output --timeout 3600
2022-07-18 13:12:08 DEBUG Starting new HTTP connection (2): localhost:4317
2022-07-18 131208 ERROR Exception while exporting Span batch.
Traceback (most recent call last):
File "xxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "xxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "xxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.8/http/client.py", line 1348, in getresponse
response.begin()
File "/usr/lib/python3.8/http/client.py", line 316, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.8/http/client.py", line 298, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: @
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "xxxxxxx/env/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "xxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/urllib3/__init__.py", line 160, in instrumented_urlopen
return wrapped(*args, **kwargs)
File "xxxxxxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/util/retry.py", line 400, in increment
raise six.reraise(type(error), error, _stacktrace)
File "xxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "xxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "xxxxxxxxxxxx/env/lib/python3.8/site-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.8/http/client.py", line 1348, in getresponse
response.begin()
File "/usr/lib/python3.8/http/client.py", line 316, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.8/http/client.py", line 298, in _read_status
raise BadStatusLine(line)
urllib3.exceptions.ProtocolError: ('Connection aborted.', BadStatusLine('\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "xxxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/sdk/trace/export/__init__.py", line 358, in _export_batch
self.span_exporter.export(self.spans_list[:idx]) # type: ignore
File "xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 136, in export
resp = self._export(serialized_data)
File "/xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py", line 107, in _export
return self._session.post(
File "xxxxxxxxxxxxxxx/env/lib/python3.8/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "xxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 122, in instrumented_request
return _instrumented_requests_call(
File "/xxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 152, in _instrumented_requests_call
return call_wrapped()
File "xxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 120, in call_wrapped
return wrapped_request(self, method, url, *args, **kwargs)
File "xxxxxxxxxxenv/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "xxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 142, in instrumented_send
return _instrumented_requests_call(
File "xxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 152, in _instrumented_requests_call
return call_wrapped()
File "xxxxxxxxxxx/env/lib/python3.8/site-packages/opentelemetry/instrumentation/requests/__init__.py", line 140, in call_wrapped
return wrapped_send(self, request, **kwargs)
File "xxxxxxxxx/env/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "xxxxxxxxxxxx/env/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine('\x00\x00\x06\x04\x00\x00\x00\x00\x00\x00\x05\x00\x00@\x00'))Priyansh
07/18/2022, 1:33 PMKanika Garg
07/18/2022, 1:35 PMPranay
Prashant Shahi
07/20/2022, 8:57 AM4318
would make sense here since in guide above we are using HTTP exporter.
can you share error log when 4318
port is used?Kanika Garg
07/20/2022, 9:12 AMhttps://files.slack.com/files-pri/T01HWUTP0LT-F03PZ2JPPDJ/image.png▾
Prashant Shahi
07/20/2022, 9:16 AM<http://localhost:4318/v1/traces>
?Kanika Garg
07/20/2022, 9:55 AM