recordErrorOnRootSpan
Adds an exception to the root span, if an active one exists.
Parameters
t
The Throwable to be added to the provided span.
Adds an exception to the root span, if an active one exists.
The Throwable to be added to the provided span.