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-1421] keep updating the view event counters after view end #1864

Merged

Conversation

BenoitZugmeyer
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer commented Dec 9, 2022

Motivation

Improve View child event counters accuracy

Changes

Keep updating View child event counters after the view ends.

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

@BenoitZugmeyer BenoitZugmeyer force-pushed the benoit/event-counters--continue-counting-after-view-end branch from b931a08 to 060a6dd Compare December 9, 2022 16:34
@codecov-commenter
Copy link

Codecov Report

Merging #1864 (060a6dd) into main (af2e6a8) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1864      +/-   ##
==========================================
- Coverage   93.19%   93.12%   -0.08%     
==========================================
  Files         137      138       +1     
  Lines        5161     5164       +3     
  Branches     1150     1150              
==========================================
- Hits         4810     4809       -1     
- Misses        351      355       +4     
Impacted Files Coverage Δ
...n/rumEventsCollection/view/trackViewEventCounts.ts 100.00% <100.00%> (ø)
...omain/rumEventsCollection/view/trackViewMetrics.ts 100.00% <100.00%> (ø)
.../src/domain/rumEventsCollection/view/trackViews.ts 100.00% <100.00%> (ø)
packages/rum-core/src/domain/trackEventCounts.ts 100.00% <100.00%> (ø)
...rum-core/src/domain/contexts/foregroundContexts.ts 90.76% <0.00%> (-6.16%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@BenoitZugmeyer BenoitZugmeyer marked this pull request as ready for review December 9, 2022 16:45
@BenoitZugmeyer BenoitZugmeyer requested a review from a team as a code owner December 9, 2022 16:45

return {
scheduleStop: () => {
setTimeout(stop, KEEP_TRACKING_EVENT_COUNTS_AFTER_VIEW_DELAY)
Copy link
Contributor

Choose a reason for hiding this comment

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

💬 suggestion: ‏missing monitor

Suggested change
setTimeout(stop, KEEP_TRACKING_EVENT_COUNTS_AFTER_VIEW_DELAY)
setTimeout(monitor(stop), KEEP_TRACKING_EVENT_COUNTS_AFTER_VIEW_DELAY)

@BenoitZugmeyer BenoitZugmeyer merged commit 25af94e into main Dec 14, 2022
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/event-counters--continue-counting-after-view-end branch December 14, 2022 15:57
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