/** * Langfuse Exporter * Exports spans to Langfuse observability platform */ import type { ExporterHealthStatus, ExportResult, LangfuseExporterConfig, SpanData } from "../../types/index.js"; import { BaseExporter } from "./baseExporter.js"; /** * Langfuse exporter for LLM observability * Supports traces, generations, spans, and scores */ export declare class LangfuseExporter extends BaseExporter { private readonly publicKey; private readonly secretKey; private readonly baseUrl; private readonly release?; private readonly redactIO; constructor(config: LangfuseExporterConfig); initialize(): Promise; exportSpan(span: SpanData): Promise; exportBatch(spans: SpanData[]): Promise; flush(): Promise; shutdown(): Promise; healthCheck(): Promise; /** * Verify connectivity to Langfuse API */ protected ping(): Promise; /** * Create a Langfuse trace */ private createTrace; /** * Create a Langfuse span */ private createSpan; /** * Create a Langfuse generation (for LLM calls) */ private createGeneration; /** * Make API call to Langfuse */ private apiCall; /** * Extract tags from span attributes */ private extractTags; }