Skip to content

withCustomSpan

const withCustomSpan: <TOutput>(fn, ...args) => Promise<TOutput>;
Type Parameter

TOutput

Parameter Type

fn

(span) => Promise<TOutput>

…args

[options: DeepPartial<CreateSpanOptions<CustomSpanData>> & object, parent?: | Span<any> | Trace]

Promise<TOutput>