Hi,
we are using signalfx-python library to send metrics.
Our sample code
Client = <client building with Url and token client.start() client.stop()
Issue:
whenever any error happened from the URL request. Our whole application stops completly.
Diving deep to the issue, found that original main thread is going in to _wait_for_tstate_lock state().
attaching exception trace:
File "scheduler.py", line 33, in send_heartbeat signalfx_metrics.send_availability_metric() File "/Users/jgovindaraj/Documents/Projects/signalfxteams/scripts/services/signalfx_metrics.py", line 39, in send_availability_metric client.stop() File "/Users/jgovindaraj/Documents/Projects/signalfxteams/scripts/signalfx/ingest.py", line 214, in stop self._send_thread.join() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 1011, in join self._wait_for_tstate_lock() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 1027, in _wait_for_tstate_lock elif lock.acquire(block, timeout):
Thanks in advance.