Spans can record exceptions events using recordException() methods:
recordException()
recordException(Throwable)
recordException(Throwable, Attributes)