Execute the callback fn function with the passed span as the active span. The callback receives
an ISpanScope object as its first parameter and the this context (when no thisArg is provided).
Note: The callback will be executed even if the span is null.
The current trace host instance (core or AISKU instance)
The span to set as the active span during the execution of the callback
the callback function that receives an ISpanScope
OptionalthisArg: ThisParameterType<F>the this argument for the callback. If not provided, ISpanScope is used as this
The result of the function
Execute the callback fn function with the passed span as the active span. The callback receives
an ISpanScope object as its first parameter and the this context (when no thisArg is provided).
Note: The callback will be executed even if the span is null.
The current trace host instance (core or AISKU instance)
The span to set as the active span during the execution of the callback
the callback function that receives an ISpanScope and additional arguments
OptionalthisArg: ThisParameterType<F>the this argument for the callback. If not provided, ISpanScope is used as this
Rest..._args: AAdditional arguments to be passed to the function
The result of the function
Execute the callback
fnfunction with the passed span as the active span. The callback receives an ISpanScope object as its first parameter and thethiscontext (when no thisArg is provided). Note: The callback will be executed even if the span is null.Param: traceHost
The current trace host instance (core or AISKU instance)
Param: span
The span to set as the active span during the execution of the callback
Param: fn
the callback function that receives an ISpanScope and additional arguments
Param: thisArg
the
thisargument for the callback. If not provided, ISpanScope is used asthisParam: _args
Additional arguments to be passed to the function