iudex-web
Version:
Iudex web client
28 lines (27 loc) • 740 B
TypeScript
import { Attributes } from '@opentelemetry/api';
import { eventWithTime } from '@rrweb/types';
interface SessionChunk {
sessionId: string;
sessionAttributes: Attributes;
resourceAttributes: Attributes;
events: eventWithTime[];
}
export declare class SessionExporter {
private readonly url;
private readonly headers;
private queue;
private isUploading;
private readonly interval;
private timeoutId;
constructor({ url, headers, interval, }: {
url: string;
headers: Record<string, string>;
interval: number;
});
addToQueue(chunk: SessionChunk): void;
private scheduleUpload;
private startUploading;
private uploadChunk;
shutdown(): void;
}
export {};