def test_analytics_default(self):
    conn = self._get_conn()
    conn.cursor().execute("select 'blah'")
    spans = self.get_spans()
    self.assertEqual(len(spans), 1)
    span = spans[0]
    self.assertIsNone(span.get_metric(ANALYTICS_SAMPLE_RATE_KEY))
def test_analytics_default(self):
    conn = self._get_conn()
    conn.cursor().execute("select 'blah'")
    spans = self.get_spans()
    self.assertEqual(len(spans), 1)
    span = spans[0]
    self.assertIsNone(span.get_metric(ANALYTICS_SAMPLE_RATE_KEY))