コンテンツにスキップ

createAgentSpan

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

function createAgentSpan(options?, parent?): Span<AgentSpanData>

Create a new agent span. The span will not be started automatically, you should either use withAgentSpan() or call span.start() and span.end() manually.

Parameter Type Description

options?

DeepPartial<CreateSpanOptions<AgentSpanData>>

Optional span creation options, including span data and identifiers.

parent?

| Trace | Span<any>

The parent span or trace. If not provided, the current trace/span will be used automatically.

Span<AgentSpanData>

The newly created agent span.