def METHOD_NAME(self):
    class TestUseSpanException(Exception):
        pass
    test_span = TestSpan(trace.INVALID_SPAN_CONTEXT)
    with self.assertRaises(TestUseSpanException):
        with trace.use_span(test_span):
            raise TestUseSpanException("test error")
    self.assertEqual(
        test_span.recorded_status.status_code, StatusCode.ERROR
    )
    self.assertEqual(
        test_span.recorded_status.description,
        "TestUseSpanException: test error",
    )