Skip to content

Commit

Permalink
fix(apm): Check if performance.getEntries() exists (#2710)
Browse files Browse the repository at this point in the history
  • Loading branch information
suke committed Jun 30, 2020
1 parent 3349cb8 commit e7a91d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apm/src/integrations/tracing.ts
Expand Up @@ -561,7 +561,7 @@ export class Tracing implements Integration {
* @param transactionSpan The transaction span
*/
private static _addPerformanceEntries(transactionSpan: SpanClass): void {
if (!global.performance) {
if (!global.performance || !global.performance.getEntries) {
// Gatekeeper if performance API not available
return;
}
Expand Down

0 comments on commit e7a91d9

Please sign in to comment.