@@ -20,8 +20,8 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
2020
2121 const initConfig = Object . assign ( { } , config . sentry , _runtimeConfig || { } ) ;
2222
23- initConfig . _metadata = initConfig . _metadata || { } ;
24- initConfig . _metadata . sdk = {
23+ initConfig . _internal = initConfig . _internal || { } ;
24+ initConfig . _internal . sdk = {
2525 name : 'sentry.javascript.ember' ,
2626 packages : [
2727 {
@@ -66,15 +66,25 @@ export const instrumentRoutePerformance = (BaseRoute: any) => {
6666 return {
6767 [ BaseRoute . name ] : class extends BaseRoute {
6868 beforeModel ( ...args : any [ ] ) {
69- return instrumentFunction ( 'ember.route.beforeModel' , ( < any > this ) . fullRouteName , super . beforeModel . bind ( this ) , args ) ;
69+ return instrumentFunction (
70+ 'ember.route.beforeModel' ,
71+ ( < any > this ) . fullRouteName ,
72+ super . beforeModel . bind ( this ) ,
73+ args ,
74+ ) ;
7075 }
7176
7277 async model ( ...args : any [ ] ) {
7378 return instrumentFunction ( 'ember.route.model' , ( < any > this ) . fullRouteName , super . model . bind ( this ) , args ) ;
7479 }
7580
7681 async afterModel ( ...args : any [ ] ) {
77- return instrumentFunction ( 'ember.route.afterModel' , ( < any > this ) . fullRouteName , super . afterModel . bind ( this ) , args ) ;
82+ return instrumentFunction (
83+ 'ember.route.afterModel' ,
84+ ( < any > this ) . fullRouteName ,
85+ super . afterModel . bind ( this ) ,
86+ args ,
87+ ) ;
7888 }
7989
8090 async setupController ( ...args : any [ ] ) {
0 commit comments