newrelic-telemetry-sdk-python icon indicating copy to clipboard operation
newrelic-telemetry-sdk-python copied to clipboard

MetricAPI intermittently failing to upload

Open jacob-aegis opened this issue 1 year ago • 1 comments

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?

jacob-aegis avatar Aug 14 '23 23:08 jacob-aegis