Start a named span, set it as the active span in context, and run the callback. Child spans created inside fn will be linked as children of this span. When @opentelemetry/api is not available, fn is called directly with a null span.
fn
@opentelemetry/api
null
Start a named span, set it as the active span in context, and run the callback. Child spans created inside
fnwill be linked as children of this span. When@opentelemetry/apiis not available,fnis called directly with anullspan.