UNPKG

@multiplayer-app/session-recorder-browser

Version:
26 lines 978 B
import { SessionType } from '@multiplayer-app/session-recorder-common'; import { TracerBrowserConfig } from '../types'; export declare class TracerBrowserSDK { private tracerProvider?; private config?; private sessionId; private idGenerator; private exporter?; private globalErrorListenersRegistered; constructor(); private setSessionId; init(options: TracerBrowserConfig): void; start(sessionId: any, sessionType: SessionType): void; stop(): void; setApiKey(apiKey: string): void; /** * Capture an exception as an error span/event. * If there is an active span, the exception will be recorded on it. * Otherwise, a short-lived span will be created to hold the exception event. */ captureException(error: Error, errorInfo?: Record<string, any>): void; private _recordException; private _getSpanSessionIdProcessor; private _registerGlobalErrorListeners; } //# sourceMappingURL=index.d.ts.map