File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
ember/addon/instance-initializers Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ function _instrumentEmberRunloop(config: EmberSentryConfig): void {
223223 } ,
224224 name : 'runloop' ,
225225 op : `ui.ember.runloop.${ queue } ` ,
226- startTimestamp : currentQueueStart ,
226+ startTime : currentQueueStart ,
227227 } ) ?. end ( now ) ;
228228 }
229229 currentQueueStart = undefined ;
@@ -296,7 +296,7 @@ function processComponentRenderAfter(
296296 name : payload . containerKey || payload . object ,
297297 op,
298298 origin : 'auto.ui.ember' ,
299- startTimestamp : begin . now ,
299+ startTime : begin . now ,
300300 } ) ?. end ( now ) ;
301301 }
302302}
@@ -372,17 +372,17 @@ function _instrumentInitialLoad(config: EmberSentryConfig): void {
372372 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
373373 const measure = measures [ 0 ] ! ;
374374
375- const startTimestamp = ( measure . startTime + browserPerformanceTimeOrigin ) / 1000 ;
376- const endTimestamp = startTimestamp + measure . duration / 1000 ;
375+ const startTime = ( measure . startTime + browserPerformanceTimeOrigin ) / 1000 ;
376+ const endTime = startTime + measure . duration / 1000 ;
377377
378378 startInactiveSpan ( {
379379 op : 'ui.ember.init' ,
380380 name : 'init' ,
381381 attributes : {
382382 [ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.ui.ember' ,
383383 } ,
384- startTimestamp ,
385- } ) ?. end ( endTimestamp ) ;
384+ startTime ,
385+ } ) ?. end ( endTime ) ;
386386 performance . clearMarks ( startName ) ;
387387 performance . clearMarks ( endName ) ;
388388
Original file line number Diff line number Diff line change @@ -127,7 +127,11 @@ describe('spanProfileUtils', () => {
127127
128128 jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
129129
130- const transaction = Sentry . startInactiveSpan ( { forceTransaction : true , name : 'profile_hub' , traceId : 'boop' } ) ;
130+ Sentry . getCurrentScope ( ) . getPropagationContext ( ) . traceId = 'boop' ;
131+ const transaction = Sentry . startInactiveSpan ( {
132+ forceTransaction : true ,
133+ name : 'profile_hub' ,
134+ } ) ;
131135 await wait ( 500 ) ;
132136 transaction . end ( ) ;
133137
You can’t perform that action at this time.
0 commit comments