recordException

abstract fun recordException(exception: Throwable): Span

Record an exception on this span.

Sets status to ERROR and adds an exception event.

Return

This span for chaining

Parameters

exception

The exception to record