File tree 2 files changed +11
-7
lines changed
ember/addon/instance-initializers
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 {
223
223
} ,
224
224
name : 'runloop' ,
225
225
op : `ui.ember.runloop.${ queue } ` ,
226
- startTimestamp : currentQueueStart ,
226
+ startTime : currentQueueStart ,
227
227
} ) ?. end ( now ) ;
228
228
}
229
229
currentQueueStart = undefined ;
@@ -296,7 +296,7 @@ function processComponentRenderAfter(
296
296
name : payload . containerKey || payload . object ,
297
297
op,
298
298
origin : 'auto.ui.ember' ,
299
- startTimestamp : begin . now ,
299
+ startTime : begin . now ,
300
300
} ) ?. end ( now ) ;
301
301
}
302
302
}
@@ -372,17 +372,17 @@ function _instrumentInitialLoad(config: EmberSentryConfig): void {
372
372
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
373
373
const measure = measures [ 0 ] ! ;
374
374
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 ;
377
377
378
378
startInactiveSpan ( {
379
379
op : 'ui.ember.init' ,
380
380
name : 'init' ,
381
381
attributes : {
382
382
[ SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ] : 'auto.ui.ember' ,
383
383
} ,
384
- startTimestamp ,
385
- } ) ?. end ( endTimestamp ) ;
384
+ startTime ,
385
+ } ) ?. end ( endTime ) ;
386
386
performance . clearMarks ( startName ) ;
387
387
performance . clearMarks ( endName ) ;
388
388
Original file line number Diff line number Diff line change @@ -127,7 +127,11 @@ describe('spanProfileUtils', () => {
127
127
128
128
jest . spyOn ( transport , 'send' ) . mockReturnValue ( Promise . resolve ( { } ) ) ;
129
129
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
+ } ) ;
131
135
await wait ( 500 ) ;
132
136
transaction . end ( ) ;
133
137
You can’t perform that action at this time.
0 commit comments