UNPKG

@embrace-io/web-sdk

Version:
35 lines 1.67 kB
import { EmbraceInstrumentationBase } from "../../EmbraceInstrumentationBase/EmbraceInstrumentationBase.js"; import "../../EmbraceInstrumentationBase/index.js"; import { SoftNavigationPerformanceInstrumentationArgs } from "./types.js"; //#region src/instrumentations/soft-navigation-performance/SoftNavigationPerformanceInstrumentation/SoftNavigationPerformanceInstrumentation.d.ts /** * Returns the click entry whose processing window contains the given navigation * timestamp, or null if no match is found. * * For pushState navigations, currententrychange fires synchronously during the * click handler, so the timestamp falls within the click entry's * [startTime, startTime + duration] window. */ declare function getNavigationEventTrigger(navigationTimestamp: number, entry: PerformanceEventTiming): PerformanceEventTiming | null; declare class SoftNavigationPerformanceInstrumentation extends EmbraceInstrumentationBase { private _observer; private _eventObserver; private _pendingNavigations; private _usePolyfill; private readonly _navigationHost; private readonly _signalBuffer; private readonly _handleCurrentEntryChange; constructor({ diag, perf, limitManager, navigationHost, signalBuffer }?: SoftNavigationPerformanceInstrumentationArgs); enable(): void; onEnable(): void; private _enableNative; private _enablePolyfill; onDisable(): void; private _correlationAttributes; private _processEntry; private _processClickEntry; private _emitPolyfillSpan; } //#endregion export { SoftNavigationPerformanceInstrumentation, getNavigationEventTrigger }; //# sourceMappingURL=SoftNavigationPerformanceInstrumentation.d.ts.map