Skip to content

Commit e7a91d9

Browse files
authored
fix(apm): Check if performance.getEntries() exists (#2710)
1 parent 3349cb8 commit e7a91d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/apm/src/integrations/tracing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ export class Tracing implements Integration {
561561
* @param transactionSpan The transaction span
562562
*/
563563
private static _addPerformanceEntries(transactionSpan: SpanClass): void {
564-
if (!global.performance) {
564+
if (!global.performance || !global.performance.getEntries) {
565565
// Gatekeeper if performance API not available
566566
return;
567567
}

0 commit comments

Comments
 (0)