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

33 lines (32 loc) • 1.12 kB
/** * Sentry Exporter * Exports spans to Sentry error tracking and performance platform */ import type { ExporterHealthStatus, ExportResult, SentryExporterConfig, SpanData } from "../../types/index.js"; import { BaseExporter } from "./baseExporter.js"; /** * Sentry exporter for error tracking and performance monitoring * Captures AI errors as exceptions and traces as transactions */ export declare class SentryExporter extends BaseExporter { private readonly dsn; private readonly tracesSampleRate; private readonly release?; private sentryHub; constructor(config: SentryExporterConfig); initialize(): Promise<void>; /** * Load Sentry SDK dynamically as an optional dependency * @returns Sentry module or null if not installed */ private loadSentry; exportSpan(span: SpanData): Promise<ExportResult>; exportBatch(spans: SpanData[]): Promise<ExportResult>; flush(): Promise<void>; shutdown(): Promise<void>; healthCheck(): Promise<ExporterHealthStatus>; /** * Verify Sentry SDK is functional */ protected ping(): Promise<void>; }