import { ResourceTimingInstrumentationConfig } from "./types.js"; import { InstrumentationBase } from "@opentelemetry/instrumentation"; //#region src/resource-timing/instrumentation.d.ts /** * OpenTelemetry instrumentation for resource timing for browser applications. * * This instrumentation captures resource timing data using PerformanceObserver * and batches emissions to avoid overwhelming the main thread. It uses * requestIdleCallback when available (with fallback for Safari) to ensure * processing happens during idle periods. */ declare class ResourceTimingInstrumentation extends InstrumentationBase { private _observer?; private _pendingEntries; private _idleHandle?; private _isEnabled; private _loadHandler; private _visibilityChangeHandler; constructor(config?: ResourceTimingInstrumentationConfig); protected init(): never[]; enable(): void; disable(): void; private _setupObserver; private _scheduleProcessing; private _processChunk; private _emitResource; private _flush; private _cancelScheduledProcessing; } //#endregion export { ResourceTimingInstrumentation }; //# sourceMappingURL=instrumentation.d.ts.map