Agent execution metrics

interface AgentMetrics {
    traceId: string;
    spanId: string;
    agentId: string;
    agentVersion: string;
    inputSize: number;
    outputSize: number;
    latencyMs: number;
    llmCalls: number;
    toolCalls: number;
    totalTokens: number;
    totalCost: number;
    success: boolean;
    error?: string;
    timestamp: Date;
}

Properties

traceId: string
spanId: string
agentId: string
agentVersion: string
inputSize: number
outputSize: number
latencyMs: number
llmCalls: number
toolCalls: number
totalTokens: number
totalCost: number
success: boolean
error?: string
timestamp: Date