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

🔊 [RUMF-1036] Add negative loading time internal monitoring #1095

Merged
merged 4 commits into from
Oct 1, 2021

Conversation

amortemousque
Copy link
Contributor

@amortemousque amortemousque commented Sep 30, 2021

Motivation

Some views and actions have a negative loading time.
Because it happens more often on actions, this PR only adds internal monitoring to them.
The first step is to identify if this behaviour comes from waitIdlePageActivity.

Changes

Add internal monitoring on actions with negative loading time

Testing


I have gone over the contributing documentation.

@amortemousque amortemousque requested a review from a team as a code owner September 30, 2021 15:28
Comment on lines 146 to 150
actionDuration,
type: this.type,
name: this.name,
startClocks: this.startClocks,
endTime,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how this information will help you to understand what's going on. The startClocks.timeStamp will always be greater than endTime, which is the issue I know, but what could we deduce from that?

Maybe storing the "clock state" in endTime instead of a timestamp alone could help, we could maybe observe that comparing timestamps produces a negative time, but comparing relative times produces a positive time.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, thanks for the advice. I'll add the end clock state.

@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2021

Codecov Report

Merging #1095 (5d3752f) into main (628781e) will decrease coverage by 0.01%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1095      +/-   ##
==========================================
- Coverage   89.11%   89.10%   -0.02%     
==========================================
  Files          90       90              
  Lines        4190     4193       +3     
  Branches      954      955       +1     
==========================================
+ Hits         3734     3736       +2     
- Misses        456      457       +1     
Impacted Files Coverage Δ
.../domain/rumEventsCollection/action/trackActions.ts 96.15% <80.00%> (-1.81%) ⬇️
...omain/rumEventsCollection/view/trackViewMetrics.ts 100.00% <100.00%> (ø)
...ackages/rum-core/src/domain/trackPageActivities.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 628781e...5d3752f. Read the comment docs.

Comment on lines +144 to +150
debug: {
actionDuration,
type: this.type,
name: this.name,
startClocks: this.startClocks,
endClocks,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about adding currentDrift too?
to see if it can be related somehow

@amortemousque amortemousque merged commit 9982b24 into main Oct 1, 2021
@amortemousque amortemousque deleted the aymeric/negative-loading-time-monitoring branch October 1, 2021 08:24
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.

4 participants