recordException

abstract fun recordException(throwable: Throwable, attributes: Map<String, String>)

Reports a handled, non-fatal throwable together with contextual attributes.