mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 07:11:50 +00:00
[web] bring back compileTimeServerE2E in client side compile metrics (#9203)
GitOrigin-RevId: f10ee837869b102aab25695c676d0e6adafa80c1
This commit is contained in:
parent
e103f736e1
commit
f2b0b77907
1 changed files with 3 additions and 7 deletions
|
@ -4,7 +4,7 @@ import { trackPdfDownloadEnabled } from './pdf-caching-flags'
|
|||
|
||||
// VERSION should get incremented when making changes to caching behavior or
|
||||
// adjusting metrics collection.
|
||||
const VERSION = 5
|
||||
const VERSION = 6
|
||||
|
||||
// editing session id
|
||||
const EDITOR_SESSION_ID = uuid()
|
||||
|
@ -33,8 +33,7 @@ export function trackPdfDownload(response, compileTimeClientE2E, t0) {
|
|||
if (!isFirstRender) return
|
||||
isFirstRender = false
|
||||
|
||||
const totalDeliveryTime = Math.ceil(performance.now() - t0)
|
||||
deliveryLatencies.totalDeliveryTime = totalDeliveryTime
|
||||
deliveryLatencies.totalDeliveryTime = Math.ceil(performance.now() - t0)
|
||||
deliveryLatencies.latencyFetch = latencyFetch
|
||||
if (latencyRender) {
|
||||
deliveryLatencies.latencyRender = latencyRender
|
||||
|
@ -42,10 +41,7 @@ export function trackPdfDownload(response, compileTimeClientE2E, t0) {
|
|||
if (trackPdfDownloadEnabled) {
|
||||
// Submit latency along with compile context.
|
||||
submitCompileMetrics({
|
||||
totalDeliveryTime,
|
||||
latencyFetch,
|
||||
latencyRender,
|
||||
compileTimeClientE2E,
|
||||
...deliveryLatencies,
|
||||
...pdfCachingMetrics,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue