Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
17 lines
778 B
Plaintext
17 lines
778 B
Plaintext
import type { Client } from '@sentry/core';
|
|
import type { WebVitalReportEvent } from './utils';
|
|
/**
|
|
* Starts tracking the Largest Contentful Paint on the current page and collects the value once
|
|
*
|
|
* - the page visibility is hidden
|
|
* - a navigation span is started (to stop LCP measurement for SPA soft navigations)
|
|
*
|
|
* Once either of these events triggers, the LCP value is sent as a standalone span and we stop
|
|
* measuring LCP for subsequent routes.
|
|
*/
|
|
export declare function trackLcpAsStandaloneSpan(client: Client): void;
|
|
/**
|
|
* Exported only for testing!
|
|
*/
|
|
export declare function _sendStandaloneLcpSpan(lcpValue: number, entry: LargestContentfulPaint | undefined, pageloadSpanId: string, reportEvent: WebVitalReportEvent): void;
|
|
//# sourceMappingURL=lcp.d.ts.map |