Skip to content

withHandoffSpan

const withHandoffSpan: <TOutput>(fn, ...args) => Promise<TOutput>;

Create a new handoff span and automatically start and end it.

Type Parameter

TOutput

Parameter Type

fn

(span) => Promise<TOutput>

args

[DeepPartial<CreateSpanOptions<HandoffSpanData>>, | Trace | Span<any>]

Promise<TOutput>