The span.recordException method doesn't allow for additional attributes to be added to the event. This function
copies the logic from the span.recordException method and allows adding extra attributes to the event.
Parameters
span: undefined|Span
The span to add the event to. If the span is undefined, then the function does nothing.
The
span.recordException
method doesn't allow for additional attributes to be added to the event. This function copies the logic from thespan.recordException
method and allows adding extra attributes to the event.