Commit a0dd71a
authored
fix(apm|tracing): Make sure Performance Observer takeRecords() is defined (#2825)
* fix(apm|tracing): Make sure Performance Observer takeRecords() is defined
In Safari 14.0 and below, `PerformanceObserver.takeRecords()` is not defined. We should defend against it by
checking for existence before usage. In the future, we may have to look for another way to track PO records
for these browsers. Also occurs in IE 11.1 parent e4b5782 commit a0dd71a
File tree
3 files changed
+7
-2
lines changed- packages
- apm/src/integrations
- tracing/src/browser
3 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | | - | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
764 | 766 | | |
765 | 767 | | |
766 | 768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
0 commit comments