@@ -5,7 +5,7 @@ import * as Sentry from '@sentry/browser';
55import { Span , Transaction , Integration } from '@sentry/types' ;
66import { EmberRunQueues } from '@ember/runloop/-private/types' ;
77import { getActiveTransaction } from '..' ;
8- import { timestampWithMs } from '@sentry/utils' ;
8+ import { browserPerformanceTimeOrigin , timestampWithMs } from '@sentry/utils' ;
99import { macroCondition , isTesting , getOwnConfig } from '@embroider/macros' ;
1010import { EmberSentryConfig , OwnConfig } from '../types' ;
1111
@@ -299,7 +299,7 @@ function _instrumentInitialLoad(config: EmberSentryConfig) {
299299
300300 // Split performance check in two so clearMarks still happens even if timeOrigin isn't available.
301301 const HAS_PERFORMANCE_TIMING =
302- performance . measure && performance . getEntriesByName && performance . timeOrigin !== undefined ;
302+ performance . measure && performance . getEntriesByName && browserPerformanceTimeOrigin !== undefined ;
303303 if ( ! HAS_PERFORMANCE_TIMING ) {
304304 return ;
305305 }
@@ -309,7 +309,7 @@ function _instrumentInitialLoad(config: EmberSentryConfig) {
309309 const measures = performance . getEntriesByName ( measureName ) ;
310310 const measure = measures [ 0 ] ;
311311
312- const startTimestamp = ( measure . startTime + performance . timeOrigin ) / 1000 ;
312+ const startTimestamp = ( measure . startTime + browserPerformanceTimeOrigin ) / 1000 ;
313313 const endTimestamp = startTimestamp + measure . duration / 1000 ;
314314
315315 const transaction = getActiveTransaction ( ) ;
0 commit comments