[web] bring back compileTimeServerE2E in client side compile metrics (#9203)
GitOrigin-RevId: f10ee837869b102aab25695c676d0e6adafa80c1
This commit is contained in:
@@ -4,7 +4,7 @@ import { trackPdfDownloadEnabled } from './pdf-caching-flags'
|
|||||||
|
|
||||||
// VERSION should get incremented when making changes to caching behavior or
|
// VERSION should get incremented when making changes to caching behavior or
|
||||||
// adjusting metrics collection.
|
// adjusting metrics collection.
|
||||||
const VERSION = 5
|
const VERSION = 6
|
||||||
|
|
||||||
// editing session id
|
// editing session id
|
||||||
const EDITOR_SESSION_ID = uuid()
|
const EDITOR_SESSION_ID = uuid()
|
||||||
@@ -33,8 +33,7 @@ export function trackPdfDownload(response, compileTimeClientE2E, t0) {
|
|||||||
if (!isFirstRender) return
|
if (!isFirstRender) return
|
||||||
isFirstRender = false
|
isFirstRender = false
|
||||||
|
|
||||||
const totalDeliveryTime = Math.ceil(performance.now() - t0)
|
deliveryLatencies.totalDeliveryTime = Math.ceil(performance.now() - t0)
|
||||||
deliveryLatencies.totalDeliveryTime = totalDeliveryTime
|
|
||||||
deliveryLatencies.latencyFetch = latencyFetch
|
deliveryLatencies.latencyFetch = latencyFetch
|
||||||
if (latencyRender) {
|
if (latencyRender) {
|
||||||
deliveryLatencies.latencyRender = latencyRender
|
deliveryLatencies.latencyRender = latencyRender
|
||||||
@@ -42,10 +41,7 @@ export function trackPdfDownload(response, compileTimeClientE2E, t0) {
|
|||||||
if (trackPdfDownloadEnabled) {
|
if (trackPdfDownloadEnabled) {
|
||||||
// Submit latency along with compile context.
|
// Submit latency along with compile context.
|
||||||
submitCompileMetrics({
|
submitCompileMetrics({
|
||||||
totalDeliveryTime,
|
...deliveryLatencies,
|
||||||
latencyFetch,
|
|
||||||
latencyRender,
|
|
||||||
compileTimeClientE2E,
|
|
||||||
...pdfCachingMetrics,
|
...pdfCachingMetrics,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user