콘텐츠로 이동

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>