@algolia/algolia-browser-telemetry
Version:
<p align="center"> <img src="https://github.com/algolia/algolia-browser-telemetry/blob/master/doc/netinfo.blog.png?raw=true" height="380px"/> </p> <br/> <br/>
21 lines (20 loc) • 832 B
TypeScript
import { Reporter } from './reporter';
import { TelemetryClient } from './types';
import { RequestDetails } from './types/Telemetry';
import { TelemetrySettings } from './getSettings';
interface TelemetryOptions {
applications?: string[];
errorQueueCapacity?: number;
telemetryQueueCapacity?: number;
reporter?: Reporter;
settings?: TelemetrySettings;
getRequestDetails?: (url: string) => RequestDetails;
}
/**
* Creates a new instance of the Telemetry Client with the possibility to set custom queue sizes
* and initializes the performance observers along with the queues relevant to data collection
* @param {object} options
* @returns {TelemetryClient}
*/
declare function createTelemetryClient(options?: TelemetryOptions): TelemetryClient;
export default createTelemetryClient;