File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
addon/instance-initializers Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -386,15 +386,15 @@ export async function instrumentForPerformance(appInstance: ApplicationInstance)
386
386
// Maintaining backwards compatibility with config.browserTracingOptions, but passing it with Sentry options is preferred.
387
387
const browserTracingOptions = config . browserTracingOptions || config . sentry . browserTracingOptions || { } ;
388
388
389
- const tracing = await import ( '@sentry/tracing ' ) ;
389
+ const { BrowserTracing } = await import ( '@sentry/browser ' ) ;
390
390
391
391
const idleTimeout = config . transitionTimeout || 5000 ;
392
392
393
393
const existingIntegrations = ( sentryConfig [ 'integrations' ] || [ ] ) as Integration [ ] ;
394
394
395
395
sentryConfig [ 'integrations' ] = [
396
396
...existingIntegrations ,
397
- new tracing . Integrations . BrowserTracing ( {
397
+ new BrowserTracing ( {
398
398
routingInstrumentation : ( customStartTransaction , startTransactionOnPageLoad ) => {
399
399
const routerMain = appInstance . lookup ( 'router:main' ) ;
400
400
let routerService = appInstance . lookup ( 'service:router' ) as
@@ -421,7 +421,7 @@ export async function instrumentForPerformance(appInstance: ApplicationInstance)
421
421
] ;
422
422
423
423
class FakeBrowserTracingClass {
424
- static id = tracing . BROWSER_TRACING_INTEGRATION_ID ;
424
+ static id = 'BrowserTracing' ;
425
425
public name = FakeBrowserTracingClass . id ;
426
426
setupOnce ( ) {
427
427
// noop - We're just faking this class for a lookup
Original file line number Diff line number Diff line change 30
30
"dependencies" : {
31
31
"@embroider/macros" : " ^1.9.0" ,
32
32
"@sentry/browser" : " 7.44.2" ,
33
- "@sentry/tracing" : " 7.44.2" ,
34
33
"@sentry/types" : " 7.44.2" ,
35
34
"@sentry/utils" : " 7.44.2" ,
36
35
"ember-auto-import" : " ^1.12.1 || ^2.4.3" ,
You can’t perform that action at this time.
0 commit comments