UNPKG

@embrace-io/web-sdk

Version:
24 lines 1.17 kB
import { PerformanceClock, PerformanceManager } from "./types.cjs"; //#region src/utils/PerformanceManager/OTelPerformanceManager.d.ts declare function updateZeroTimeMillis(epochMs: number): void; declare function _resetZeroTimeMillisForTesting(): void; declare class OTelPerformanceManager implements PerformanceManager { private readonly _clock; private navigationEntry; constructor(clock?: PerformanceClock); epochMillisFromOrigin: (originOffset: number) => number; getNowMillis: () => number; /** * To measure the way a user experienced a metric, we measure metrics relative to the time the user * started viewing the current page or view. On prerendered pages, this is activationStart. On bfcache * restores and soft navigations, this is the time of the restore or navigation. On all other pages * this value will be zero. */ getZeroTime: () => number; private _getNavigationEntry; private _getNavigationActivationStart; millisFromZeroTime: (originOffset: number) => number; } //#endregion export { OTelPerformanceManager, _resetZeroTimeMillisForTesting, updateZeroTimeMillis }; //# sourceMappingURL=OTelPerformanceManager.d.cts.map