-
Notifications
You must be signed in to change notification settings - Fork 144
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-636] initial document trace id #492
Conversation
* This simplifies a bit the performance collection * This makes it closer to how trackRequests works * This fixes the trackPageActivities computation (it should not be impacted by whether resources are collected or not)
Two reasons: * custom types are easier to fake for manually created data and mock during tests. It requires less cast. Also, we already had "fake" types accross the codebase. * it will be used to add optional properties like "traceId"
570b0ea
to
37db725
Compare
Codecov Report
@@ Coverage Diff @@
## master #492 +/- ##
==========================================
+ Coverage 87.69% 87.74% +0.05%
==========================================
Files 34 35 +1
Lines 2113 2155 +42
Branches 417 433 +16
==========================================
+ Hits 1853 1891 +38
- Misses 260 264 +4
Continue to review full report at Codecov.
|
f38ee77
to
46823e8
Compare
46823e8
to
949f4f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me once your are done with the e2e tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm !
The new function makes sure the session is tracking resources, allowing to factorize the code between requests and resources tracking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 👍
Motivation
Retrieve the trace id generated by APM for the initial document load and associate it with the generated document resource event.
Changes
Testing
I have gone over the contributing documentation.