recordException

Records an exception on the span.

Parameters

exception

the exception to record.