def METHOD_NAME(self):
    """Exception information will be included in attributes"""
    emitter_provider_mock = Mock(spec=LoggerProvider)
    emitter_mock = APIGetLogger(
        __name__, logger_provider=emitter_provider_mock
    )
    logger = get_logger(logger_provider=emitter_provider_mock)
    try:
        raise ZeroDivisionError("division by zero")
    except ZeroDivisionError:
        with self.assertLogs(level=logging.ERROR):
            logger.exception("Zero Division Error")
    args, _ = emitter_mock.emit.call_args_list[0]
    log_record = args[0]
    self.assertIsNotNone(log_record)
    self.assertEqual(log_record.body, "Zero Division Error")
    self.assertEqual(
        log_record.attributes[SpanAttributes.EXCEPTION_TYPE],
        ZeroDivisionError.__name__,
    )
    self.assertEqual(
        log_record.attributes[SpanAttributes.EXCEPTION_MESSAGE],
        "division by zero",
    )
    stack_trace = log_record.attributes[
        SpanAttributes.EXCEPTION_STACKTRACE
    ]
    self.assertIsInstance(stack_trace, str)
    self.assertTrue("Traceback" in stack_trace)
    self.assertTrue("ZeroDivisionError" in stack_trace)
    self.assertTrue("division by zero" in stack_trace)
    self.assertTrue(__file__ in stack_trace)