recordException

fun recordException(throwable: Throwable, attributes: Map<String, String> = emptyMap())
fun recordException(throwable: Throwable, vararg attributes: Pair<String, String>)

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