UNPKG

@grafana/faro-transport-otlp-http

Version:

Faro transport which converts the Faro data model to the Otlp data model.

18 lines (17 loc) 689 B
import type { ExceptionEvent, MeasurementEvent, TransportItem } from '@grafana/faro-core'; export interface OtlpTransportRequestOptions extends Omit<RequestInit, 'body' | 'headers'> { headers?: Record<string, string>; } export interface OtlpHttpTransportOptions { apiKey?: string; bufferSize?: number; concurrency?: number; defaultRateLimitBackoffMs?: number; requestOptions?: OtlpTransportRequestOptions; readonly tracesURL?: string; readonly logsURL?: string; otlpTransform?: { createErrorLogBody?: (item: TransportItem<ExceptionEvent>) => string; createMeasurementLogBody?: (item: TransportItem<MeasurementEvent>) => string; }; }