コンテンツにスキップ

withAgentSpan

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

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

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

Type Parameter

TOutput

Parameter Type

fn

(span) => Promise<TOutput>

args

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

Promise<TOutput>