Runs fn inside a new active span and ends the span when fn returns or its promise settles. On a throw/rejection the exception is recorded, the status set to ERROR and the error rethrown.
fn
Runs
fninside a new active span and ends the span whenfnreturns or its promise settles. On a throw/rejection the exception is recorded, the status set to ERROR and the error rethrown.