-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore(metrics): add new timer for full preview load time tracking #922
Chore(metrics): add new timer for full preview load time tracking #922
Conversation
Verified that @JustinHoldstock has signed the CLA. Thanks for the pull request! |
src/lib/Preview.js
Outdated
@@ -753,6 +754,10 @@ class Preview extends EventEmitter { | |||
); | |||
} | |||
|
|||
// Start the preview duration timer when the user starts to perceive preview's load | |||
const tag = Timer.createTag(this.file.id, PREVIEW_LOAD_TIME_TAG); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we care about this metric if reload
is called with skipServerUpdate = true
? That code path seems to bypass load
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For us, our most important metrics are going to be related to our network response times, and served content times. If it's coming from a "reload" most of the content will already be in the browser cache, which we don't care so much about.
This puts our apdex and preview load timings at parity with our legacy metrics system.
TODO: