addExceptionToTrace

Adds an exception to the currently active span, if one exists.

Parameters

t

The Throwable to be added to the currently active span.


fun addExceptionToTrace(span: Span?, t: Throwable?)

Adds an exception to the provided span, if one exists.

Parameters

span

The Span that will be associated with the exception.

t

The Throwable to be added to the provided span.