def METHOD_NAME(self):
    _STATSBEAT_STATE["INITIAL_SUCCESS"] = False
    _STATSBEAT_STATE["INITIAL_FAILURE_COUNT"] = 1
    with mock.patch("azure.monitor.opentelemetry.exporter.export._base._reached_ingestion_code") as m, \
        mock.patch("azure.monitor.opentelemetry.exporter.export._base._is_retryable_code") as p:
        m.return_value = False
        p.return_value = False
        with mock.patch.object(AzureMonitorClient, 'track', throw(HttpResponseError)):
            result = self._exporter._transmit(self._envelopes_to_export)
    self.assertEqual(result, ExportResult.FAILED_NOT_RETRYABLE)
    self.assertFalse(_STATSBEAT_STATE["INITIAL_SUCCESS"])
    self.assertEqual(_STATSBEAT_STATE["INITIAL_FAILURE_COUNT"], 2)