UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

49 lines (48 loc) • 1.48 kB
/** * 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; }