AgentSpanName
Namespace: Vercel.AI.OpenTelemetry
public sealed class AgentSpanNameControls the root agent span names. Maps to the agentSpanName option of OpenTelemetryOptions.
Inheritance: object
Properties
Section titled “Properties”FunctionId
Section titled “FunctionId”public static AgentSpanName FunctionId { get; }Names are invoke_agent {functionId}, falling back to the model id. Maps to 'functionId'.
Value: AgentSpanName
ModelId
Section titled “ModelId”public static AgentSpanName ModelId { get; }Names are invoke_agent {modelId}. The default. Maps to 'modelId'.
Value: AgentSpanName
Methods
Section titled “Methods”From(AgentSpanNameCallback)
Section titled “From(AgentSpanNameCallback)”public static AgentSpanName From(AgentSpanNameCallback callback)Returns the complete span name. A null result or an exception falls back to the default name.
Parameters
| Name | Type | Description |
|---|---|---|
callback |
AgentSpanNameCallback |
Returns: AgentSpanName
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product