UNPKG

observ-metrics

Version:

Frontend monitoring library that eliminates noise and adds business context to OpenTelemetry data

33 lines 997 B
/** * Datadog integration for observ-metrics * Exports clean, business-contextualized telemetry to Datadog RUM and APM */ import type { TelemetryEvent, PlatformConfig, ExporterPlugin } from '../types'; export declare class DatadogExporter implements ExporterPlugin { name: string; private config; private batchedEvents; private flushTimer?; constructor(); configure(config: PlatformConfig): void; private initializeDatadogRUM; export(events: TelemetryEvent[]): Promise<void>; private flush; private sendToDatadog; private convertToDatadogFormat; private mapSeverityToDatadogLevel; private isBusinessCriticalError; private extractRelevantAttributes; private logToConsole; private mapSeverityToLogLevel; private startFlushTimer; /** * Manual flush for immediate export */ forceFlush(): Promise<void>; /** * Cleanup resources */ destroy(): void; } //# sourceMappingURL=DatadogExporter.d.ts.map