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-1262] ignore some URLs when watching the page activity #1536

Merged
merged 10 commits into from
May 20, 2022

Conversation

BenoitZugmeyer
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer commented May 16, 2022

Motivation

Some resources are interfering when watching the page activity:

  • streaming/long polling/comet requests are not reflecting a loading time
  • monitoring requests triggered on each user actions are interfering with "dead" clicks detection

Changes

Add an option to ignore some resources when computing the page activity

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

@BenoitZugmeyer BenoitZugmeyer force-pushed the benoit/excluded-activity-urls branch from a38c2a3 to 72720df Compare May 16, 2022 13:57
@codecov-commenter
Copy link

Codecov Report

Merging #1536 (72720df) into main (962b600) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1536      +/-   ##
==========================================
+ Coverage   90.48%   90.51%   +0.02%     
==========================================
  Files         116      116              
  Lines        4478     4489      +11     
  Branches     1004     1011       +7     
==========================================
+ Hits         4052     4063      +11     
  Misses        426      426              
Impacted Files Coverage Δ
packages/rum-core/src/domain/requestCollection.ts 90.24% <ø> (ø)
.../domain/rumEventsCollection/view/viewCollection.ts 100.00% <ø> (ø)
packages/core/src/tools/utils.ts 87.05% <100.00%> (+0.11%) ⬆️
packages/rum-core/src/domain/configuration.ts 96.96% <100.00%> (+0.54%) ⬆️
...in/rumEventsCollection/action/trackClickActions.ts 97.87% <100.00%> (+0.02%) ⬆️
...omain/rumEventsCollection/view/trackViewMetrics.ts 100.00% <100.00%> (ø)
.../src/domain/rumEventsCollection/view/trackViews.ts 100.00% <100.00%> (ø)
packages/rum-core/src/domain/tracing/tracer.ts 100.00% <100.00%> (ø)
...ackages/rum-core/src/domain/waitPageActivityEnd.ts 98.30% <100.00%> (+0.22%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

More details will be written in a separate document.
@BenoitZugmeyer BenoitZugmeyer marked this pull request as ready for review May 17, 2022 09:11
@BenoitZugmeyer BenoitZugmeyer requested review from a team as code owners May 17, 2022 09:11
packages/rum-core/src/domain/configuration.ts Outdated Show resolved Hide resolved
@@ -631,3 +631,7 @@ export function removeDuplicates<T>(array: T[]) {
array.forEach((item) => set.add(item))
return setToArray(set)
}

export function matchList(list: Array<string | RegExp>, value: string) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!

@BenoitZugmeyer BenoitZugmeyer merged commit 38cae48 into main May 20, 2022
@BenoitZugmeyer BenoitZugmeyer deleted the benoit/excluded-activity-urls branch May 20, 2022 09:08
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.

5 participants