@@ -5,7 +5,7 @@ import * as Sentry from '@sentry/browser';
5
5
import { Span , Transaction , Integration } from '@sentry/types' ;
6
6
import { EmberRunQueues } from '@ember/runloop/-private/types' ;
7
7
import { getActiveTransaction } from '..' ;
8
- import { timestampWithMs } from '@sentry/utils' ;
8
+ import { browserPerformanceTimeOrigin , timestampWithMs } from '@sentry/utils' ;
9
9
import { macroCondition , isTesting , getOwnConfig } from '@embroider/macros' ;
10
10
import { EmberSentryConfig , OwnConfig } from '../types' ;
11
11
@@ -299,7 +299,7 @@ function _instrumentInitialLoad(config: EmberSentryConfig) {
299
299
300
300
// Split performance check in two so clearMarks still happens even if timeOrigin isn't available.
301
301
const HAS_PERFORMANCE_TIMING =
302
- performance . measure && performance . getEntriesByName && performance . timeOrigin !== undefined ;
302
+ performance . measure && performance . getEntriesByName && browserPerformanceTimeOrigin !== undefined ;
303
303
if ( ! HAS_PERFORMANCE_TIMING ) {
304
304
return ;
305
305
}
@@ -309,7 +309,7 @@ function _instrumentInitialLoad(config: EmberSentryConfig) {
309
309
const measures = performance . getEntriesByName ( measureName ) ;
310
310
const measure = measures [ 0 ] ;
311
311
312
- const startTimestamp = ( measure . startTime + performance . timeOrigin ) / 1000 ;
312
+ const startTimestamp = ( measure . startTime + browserPerformanceTimeOrigin ! ) / 1000 ;
313
313
const endTimestamp = startTimestamp + measure . duration / 1000 ;
314
314
315
315
const transaction = getActiveTransaction ( ) ;
0 commit comments