newrelic-telemetry-sdk-python
newrelic-telemetry-sdk-python copied to clipboard
MetricAPI intermittently failing to upload
The following seems to fail during peaks in upload traffic, but we aren't hitting any API limits on our accound:
from newrelic_telemetry_sdk import MetricClient
metric_client = MetricClient(secrets['NEW_RELIC_LICENSE_KEY'])
metric = GaugeMetric("dummy_metric", {"Name": "dummy})
response = metrics_client.send_batch([metric])
response.raise_for_status()
The exception typically is:
('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
I believe this is a UrlLib ConnectionPool error?