/** * Enhanced OTel Trace Exporter for AgentProbe v4.12.0 * * Maps test runs to OTel spans with rich attributes: * - Each test → span * - Each tool call → child span * - Attributes: test.name, test.status, agent.model, agent.cost, agent.tokens */ import type { SuiteResult } from '../types'; import type { OTelSpan, OTelExport } from '../otel'; export interface TestResults { suite: SuiteResult; metadata?: { model?: string; totalCost?: number; totalTokens?: number; }; } export interface AgentProbeExporterConfig { endpoint?: string; serviceName?: string; headers?: Record; batchSize?: number; timeout?: number; } export declare class AgentProbeExporter { private config; constructor(config?: AgentProbeExporterConfig); get endpoint(): string; get serviceName(): string; /** * Convert a test run into OTel spans. * Each test becomes a span, each tool call within a test trace becomes a child span. */ exportTestRun(results: TestResults): OTelSpan[]; private testToSpans; private traceToToolSpans; /** * Pretty-print traces to console format. */ exportToConsole(results: TestResults): string; /** * Export as JSON object (OTLP format). */ exportToJSON(results: TestResults): OTelExport; /** * Send traces to an OTLP collector via HTTP. */ exportToOTLP(results: TestResults): Promise; } //# sourceMappingURL=exporter.d.ts.map