/** * Langfuse Observability Adapter * Integrates with Langfuse for production observability */ import type { ObservabilityAdapter, TraceContext, SpanContext, SpanKind, SpanStatus, AttributionContext, ObservabilityToolConfig } from '../../types'; /** * Langfuse Observability Adapter * Wraps Langfuse SDK for trace/span management */ export declare class LangfuseObservabilityAdapter implements ObservabilityAdapter { readonly name = "langfuse"; /** * Langfuse is the one external adapter with real delivery, but delivery only * happens once initialize() has successfully constructed a client from the * optional `langfuse` SDK. Until then (and forever, if the SDK is not * installed) every span goes to the in-memory adapter and nowhere else, so * `isEnabled` is derived from the live client rather than hardcoded true. */ get isEnabled(): boolean; /** This adapter can deliver, unlike the adapters in ./undelivered.ts. */ readonly delivers: boolean; private client; private memory; private config; private traces; private spans; constructor(config?: ObservabilityToolConfig); initialize(): Promise; shutdown(): Promise; startTrace(name: string, metadata?: Record, attribution?: AttributionContext): TraceContext; endTrace(traceId: string, status?: SpanStatus): void; startSpan(traceId: string, name: string, kind: SpanKind, parentId?: string): SpanContext; endSpan(spanId: string, status?: SpanStatus, attributes?: Record): void; addEvent(spanId: string, name: string, attributes?: Record): void; recordError(spanId: string, error: Error): void; flush(): Promise; }