Skip to content
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

Merged

Conversation

JustinHoldstock
Copy link
Contributor

@JustinHoldstock JustinHoldstock commented Feb 12, 2019

This puts our apdex and preview load timings at parity with our legacy metrics system.

TODO:

  • tests

@boxcla
Copy link

boxcla commented Feb 12, 2019

Verified that @JustinHoldstock has signed the CLA. Thanks for the pull request!

src/lib/Preview.js Outdated Show resolved Hide resolved
src/lib/Preview.js Show resolved Hide resolved
@@ -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);
Copy link
Contributor

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

Copy link
Contributor Author

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.

src/lib/Preview.js Outdated Show resolved Hide resolved
@JustinHoldstock JustinHoldstock merged commit 7da1899 into box:master Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants