UNPKG

@grafana/faro-transport-otlp-http

Version:

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

19 lines (18 loc) 728 B
import { BaseTransport } from '@grafana/faro-core'; import type { Patterns, TransportItem } from '@grafana/faro-core'; import type { OtlpHttpTransportOptions } from './types'; export declare class OtlpHttpTransport extends BaseTransport { private options; readonly name = "@grafana/faro-web-sdk:transport-otlp-http"; readonly version = "2.8.2"; private readonly promiseBuffer; private readonly rateLimitBackoffMs; private sendingTracesDisabledUntil; private sendingLogsDisabledUntil; constructor(options: OtlpHttpTransportOptions); getIgnoreUrls(): Patterns; isBatched(): boolean; send(items: TransportItem[]): Promise<void>; private sendPayload; private getRetryAfterDate; }