Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Class OTELExporter

    Index
    • Add a trace to the export buffer

      Parameters

      • trace: {
            agentId: string;
            amc_trace_v: 1;
            event:
                | "tool_result"
                | "llm_call"
                | "llm_result"
                | "tool_intent"
                | "verification_step";
            hashes?: { input_sha256?: string; output_sha256?: string };
            model?: string;
            note?: string;
            providerId?: string;
            receipt?: string;
            request_id?: string;
            ts: number;
        }
      • Optional_agentId: string

      Returns void

    • Add multiple traces

      Parameters

      • traces: {
            agentId: string;
            amc_trace_v: 1;
            event:
                | "tool_result"
                | "llm_call"
                | "llm_result"
                | "tool_intent"
                | "verification_step";
            hashes?: { input_sha256?: string; output_sha256?: string };
            model?: string;
            note?: string;
            providerId?: string;
            receipt?: string;
            request_id?: string;
            ts: number;
        }[]

      Returns void

    • Drain the buffer, returning the OTLP export request

      Returns OTLPExportRequest

    • Flush the buffer and export to OTLP endpoint

      Returns Promise<ExportResult>

    • Get the last OTLP request payload (for testing)

      Returns OTLPExportRequest | undefined

    • Get export stats

      Returns { totalSpansBuffered: number; totalSpansExported: number }

    • Shutdown: flush and stop timers

      Returns Promise<ExportResult>