UNPKG

observ-metrics

Version:

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

32 lines 1.09 kB
/** * New Relic integration for observ-metrics * Exports business-contextualized telemetry to New Relic Browser and APM */ import type { TelemetryEvent, PlatformConfig, ExporterPlugin } from '../types'; export declare class NewRelicExporter implements ExporterPlugin { name: string; private config; private batchedEvents; private flushTimer?; constructor(); configure(config: PlatformConfig): void; private initializeNewRelicBrowser; export(events: TelemetryEvent[]): Promise<void>; private flush; private sendToNewRelic; private sendSpansToNewRelic; private sendCustomEventsToNewRelic; private sendErrorsToNewRelic; private convertToNewRelicSpan; private convertToNewRelicCustomEvent; private convertToNewRelicError; private isBusinessCriticalError; private extractBusinessMetrics; private categorizeResponseTime; private extractRelevantAttributes; private logToConsole; private startFlushTimer; forceFlush(): Promise<void>; destroy(): void; } //# sourceMappingURL=NewRelicExporter.d.ts.map