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

38 lines (37 loc) • 1.19 kB
/** * Datadog Exporter * Exports spans to Datadog APM platform */ import type { DatadogExporterConfig, ExporterHealthStatus, ExportResult, SpanData } from "../../types/index.js"; import { BaseExporter } from "./baseExporter.js"; /** * Datadog exporter for enterprise APM integration * Supports trace correlation and AI-specific custom metrics */ export declare class DatadogExporter extends BaseExporter { private readonly apiKey; private readonly appKey?; private readonly site; private readonly service; private readonly source; private readonly logsEndpoint; constructor(config: DatadogExporterConfig); initialize(): Promise<void>; exportSpan(span: SpanData): Promise<ExportResult>; exportBatch(spans: SpanData[]): Promise<ExportResult>; flush(): Promise<void>; shutdown(): Promise<void>; healthCheck(): Promise<ExporterHealthStatus>; /** * Verify connectivity to Datadog API */ protected ping(): Promise<void>; /** * Convert span to Datadog log format with trace correlation */ private convertToDatadogLog; /** * Build Datadog tags from span attributes */ private buildTags; }