Is your feature request related to a problem?
If I want to record any exception, I need to use BaseException as the type. However, according to the signature of record_exception, only Exception is supported.
Describe the solution you'd like
Support BaseException in record_exception