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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
Optional span creation options, including span data and identifiers. |
|
|
The parent span or trace. If not provided, the current trace/span will be used automatically. |
Returns
Section titled “Returns”Span<AgentSpanData>
The newly created agent span.