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-315] collect initial document timing #276

Merged
merged 6 commits into from
Feb 20, 2020
Merged

Conversation

bcaudan
Copy link
Contributor

@bcaudan bcaudan commented Feb 19, 2020

Send an event resource for the initial document

Capture d’écran 2020-02-19 à 14 49 24

@bcaudan bcaudan requested a review from a team as a code owner February 19, 2020 13:51
@bcaudan bcaudan changed the base branch from bcaudan/event-start to master February 19, 2020 13:52
@bcaudan bcaudan changed the base branch from master to bcaudan/event-start February 19, 2020 13:52
@@ -17,7 +18,7 @@ import {

beforeEach(async () => {
// tslint:disable-next-line: no-unsafe-any
await browser.url(`/${(browser as any).config.e2eMode}-e2e-page.html`)
await browser.url(`/${(browser as any).config.e2eMode}-e2e-page.html?cb=${Date.now()}`)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

add cache busting to avoid funny timings on safari due to document caching

convert performance.timing avialable timestamps to relative times
set fake initiator type to identify `document` kind
@bcaudan bcaudan changed the base branch from bcaudan/event-start to master February 19, 2020 15:56
@codecov-io
Copy link

Codecov Report

Merging #276 into master will decrease coverage by 0.08%.
The diff coverage is 63.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #276      +/-   ##
==========================================
- Coverage   86.06%   85.98%   -0.09%     
==========================================
  Files          24       24              
  Lines        1313     1334      +21     
  Branches      280      283       +3     
==========================================
+ Hits         1130     1147      +17     
- Misses        183      187       +4
Impacted Files Coverage Δ
packages/core/src/utils.ts 97.93% <100%> (+0.02%) ⬆️
packages/rum/src/resourceUtils.ts 100% <100%> (+3.92%) ⬆️
packages/rum/src/performanceCollection.ts 63.79% <55.55%> (-3.71%) ⬇️
packages/core/src/requestCollection.ts 96.15% <0%> (+1.92%) ⬆️
packages/rum/src/rum.entry.ts 71.42% <0%> (+2.04%) ⬆️

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 ab10d25...adf3131. Read the comment docs.

packages/rum/src/performanceCollection.ts Outdated Show resolved Hide resolved
packages/rum/src/resourceUtils.ts Show resolved Hide resolved
@bcaudan bcaudan merged commit ff39d65 into master Feb 20, 2020
@bcaudan bcaudan deleted the bcaudan/timing branch February 20, 2020 11:00
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.

3 participants