record_exception()
Signature
Returns True if the exception was recorded successfully.
Parameters
Example
Decorators automatically record unhandled exceptions. Use record_exception() when you catch and handle exceptions but still want them visible in the trace.