@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
49 lines (48 loc) • 1.48 kB
TypeScript
/**
* Laminar Exporter
* Exports spans to Laminar LLM tracing platform
* @see https://docs.laminar.run/
*/
import type { ExporterHealthStatus, ExportResult, LaminarExporterConfig, SpanData } from "../../types/index.js";
import { BaseExporter } from "./baseExporter.js";
/**
* Laminar exporter for LLM pipeline tracing and monitoring
* Supports detailed traces with input/output tracking
*/
export declare class LaminarExporter extends BaseExporter {
private readonly apiKey;
private readonly projectApiKey?;
private readonly baseUrl;
constructor(config: LaminarExporterConfig);
initialize(): Promise<void>;
/**
* Get authorization headers
*/
private getHeaders;
exportSpan(span: SpanData): Promise<ExportResult>;
exportBatch(spans: SpanData[]): Promise<ExportResult>;
flush(): Promise<void>;
shutdown(): Promise<void>;
healthCheck(): Promise<ExporterHealthStatus>;
/**
* Verify connectivity to Laminar API
*/
protected ping(): Promise<void>;
/**
* Convert span to Laminar trace format
*/
private convertToLaminarTrace;
/**
* Map NeuroLink span type to Laminar type
*/
private mapSpanTypeToLaminarType;
/**
* Map span status to Laminar status format
*/
private mapSpanStatus;
/**
* Extract additional metadata from span attributes
* Filters out standard attributes that are already handled
*/
private extractMetadata;
}