コンテンツにスキップ

withTaskSpan

このコンテンツはまだ日本語訳がありません。

const withTaskSpan: <TOutput>(fn, options?, parent?) => Promise<TOutput>;

Create a task span and automatically start and end it.

Type Parameter

TOutput

Parameter Type

fn

(span) => Promise<TOutput>

options?

DeepPartial<CreateSpanOptions<TaskSpanData>>

parent?

| Trace | Span<any>

Promise<TOutput>