@@ -20,8 +20,8 @@ export function InitSentryForEmber(_runtimeConfig: BrowserOptions | undefined) {
20
20
21
21
const initConfig = Object . assign ( { } , config . sentry , _runtimeConfig || { } ) ;
22
22
23
- initConfig . _metadata = initConfig . _metadata || { } ;
24
- initConfig . _metadata . sdk = {
23
+ initConfig . _internal = initConfig . _internal || { } ;
24
+ initConfig . _internal . sdk = {
25
25
name : 'sentry.javascript.ember' ,
26
26
packages : [
27
27
{
@@ -66,15 +66,25 @@ export const instrumentRoutePerformance = (BaseRoute: any) => {
66
66
return {
67
67
[ BaseRoute . name ] : class extends BaseRoute {
68
68
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
+ ) ;
70
75
}
71
76
72
77
async model ( ...args : any [ ] ) {
73
78
return instrumentFunction ( 'ember.route.model' , ( < any > this ) . fullRouteName , super . model . bind ( this ) , args ) ;
74
79
}
75
80
76
81
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
+ ) ;
78
88
}
79
89
80
90
async setupController ( ...args : any [ ] ) {
0 commit comments