-
Notifications
You must be signed in to change notification settings - Fork 821
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
fix(xhr): check for resource timing support #1720
fix(xhr): check for resource timing support #1720
Conversation
98f27bb
to
d3e6fbf
Compare
Codecov Report
@@ Coverage Diff @@
## master #1720 +/- ##
=======================================
Coverage 91.35% 91.36%
=======================================
Files 165 165
Lines 5138 5141 +3
Branches 1056 1059 +3
=======================================
+ Hits 4694 4697 +3
Misses 444 444
|
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.
Change LGTM but according to caniuse the PerformanceResourceTiming
API is only unsupported in very old browsers that we likely don't work with anyways. Are you trying to target support for some specific browser version?
@dyladan I was confused for a bit, because I was referring to that caniuse link as well. However, that page is not entirely accurate. In the issue description I link to a more accurate caniuse for resource timing support. So it shows that it's supported in Safari 11, but only beyond macOS 10.12+. So in a sense, I guess we're trying to target a specific browser version AND OS version. We have a significant number of users still using Safari 11 on macOS 10.11 (57k errors reported in last 24 hours). The reported browser and OS for these errors is 100% on this specific browser/OS combination. |
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
d3e6fbf
to
27c381e
Compare
Co-authored-by: Amir Blum <[email protected]>
Which problem is this PR solving?
Short description of the changes
PerformanceResourceTiming
support in@opentelemetry/instrumentation-xml-http-request