@@ -6,7 +6,7 @@ import { ExtendedBackburner } from '@sentry/ember/runloop';
66import { Span , Transaction } from '@sentry/types' ;
77import { EmberRunQueues } from '@ember/runloop/-private/types' ;
88import { getActiveTransaction } from '..' ;
9- import { browserPerformanceTimeOrigin , GLOBAL_OBJ , timestampWithMs } from '@sentry/utils' ;
9+ import { browserPerformanceTimeOrigin , GLOBAL_OBJ , timestampInSeconds } from '@sentry/utils' ;
1010import { macroCondition , isTesting , getOwnConfig } from '@embroider/macros' ;
1111import { EmberSentryConfig , GlobalConfig , OwnConfig } from '../types' ;
1212import RouterService from '@ember/routing/router-service' ;
@@ -182,14 +182,14 @@ function _instrumentEmberRunloop(config: EmberSentryConfig) {
182182 if ( currentQueueSpan ) {
183183 currentQueueSpan . finish ( ) ;
184184 }
185- currentQueueStart = timestampWithMs ( ) ;
185+ currentQueueStart = timestampInSeconds ( ) ;
186186
187187 instrumentedEmberQueues . forEach ( queue => {
188188 scheduleOnce ( queue , null , ( ) => {
189189 scheduleOnce ( queue , null , ( ) => {
190190 // Process this queue using the end of the previous queue.
191191 if ( currentQueueStart ) {
192- const now = timestampWithMs ( ) ;
192+ const now = timestampInSeconds ( ) ;
193193 const minQueueDuration = minimumRunloopQueueDuration ?? 5 ;
194194
195195 if ( ( now - currentQueueStart ) * 1000 >= minQueueDuration ) {
@@ -210,7 +210,7 @@ function _instrumentEmberRunloop(config: EmberSentryConfig) {
210210 if ( ! stillActiveTransaction ) {
211211 return ;
212212 }
213- currentQueueStart = timestampWithMs ( ) ;
213+ currentQueueStart = timestampInSeconds ( ) ;
214214 } ) ;
215215 } ) ;
216216 } ) ;
@@ -244,7 +244,7 @@ interface RenderEntries {
244244function processComponentRenderBefore ( payload : Payload , beforeEntries : RenderEntries ) {
245245 const info = {
246246 payload,
247- now : timestampWithMs ( ) ,
247+ now : timestampInSeconds ( ) ,
248248 } ;
249249 beforeEntries [ payload . object ] = info ;
250250}
@@ -261,7 +261,7 @@ function processComponentRenderAfter(
261261 return ;
262262 }
263263
264- const now = timestampWithMs ( ) ;
264+ const now = timestampInSeconds ( ) ;
265265 const componentRenderDuration = now - begin . now ;
266266
267267 if ( componentRenderDuration * 1000 >= minComponentDuration ) {
0 commit comments