def _log_metrics(key, **kws):
    try:

        urllib2.urlopen(
            "https://www.dropbox.com/build_metrics" +
            "?key=%s" % key +
            "".join(
                "&%s=%s" % (urllib2.quote(str(k)), urllib2.quote(str(v)))
                for (k, v) in kws.items()
            ),
            timeout=10
        ).read()
    except Exception:
        logging.warning("Reporting flaky test data failed", exc_info=True)
dataset/ETHPy150Open dropbox/changes/changes/jobs/flaky_tests.py/_log_metrics/original