Hi,
I just got into the APM beta and have been trying it out with no luck. I have both the dd-agent and the dd-trace-agent installed and seemingly working just fine. /var/log/datadog/trace-agent.log looks like:
2016-12-29 23:35:48 INFO (receiver.go:86) - listening for traces at http://localhost:7777/
2016-12-29 23:36:48 INFO (receiver.go:288) - receiver handled 0 spans, dropped 0 ; handled 0 traces, dropped 0
2016-12-29 23:37:48 INFO (receiver.go:288) - receiver handled 0 spans, dropped 0 ; handled 0 traces, dropped 0
2016-12-29 23:38:48 INFO (receiver.go:288) - receiver handled 0 spans, dropped 0 ; handled 0 traces, dropped 0
2016-12-29 23:39:48 INFO (receiver.go:288) - receiver handled 0 spans, dropped 0 ; handled 0 traces, dropped 0
...
Unfortunately, in my app log, I get this every little while:
ERROR:ddtrace.writer:error sending spans
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/ddtrace/writer.py", line 120, in _target
self.api.send_traces(traces)
File "/usr/local/lib/python2.7/site-packages/ddtrace/api.py", line 47, in send_traces
response = self._put(self._traces, data)
File "/usr/local/lib/python2.7/site-packages/ddtrace/api.py", line 78, in _put
conn.request("PUT", endpoint, data, self._headers)
File "/usr/local/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 897, in _send_output
self.send(msg)
File "/usr/local/lib/python2.7/httplib.py", line 859, in send
self.connect()
File "/usr/local/lib/python2.7/httplib.py", line 836, in connect
self.timeout, self.source_address)
File "/usr/local/lib/python2.7/socket.py", line 575, in create_connection
raise err
error: [Errno 111] Connection refused
In my app, I'm just doing:
from ddtrace import patch_all
patch_all()
What's probably relevant here is my app is being run in a Docker container whereas my agent is installed on the host. This works fine for me on NewRelic's agent, but it looks like it might be an issue for DataDog's?
Hi,
I just got into the APM beta and have been trying it out with no luck. I have both the dd-agent and the dd-trace-agent installed and seemingly working just fine.
/var/log/datadog/trace-agent.loglooks like:Unfortunately, in my app log, I get this every little while:
In my app, I'm just doing:
What's probably relevant here is my app is being run in a Docker container whereas my agent is installed on the host. This works fine for me on NewRelic's agent, but it looks like it might be an issue for DataDog's?