11import * as Sentry from '@nativescript-community/sentry' ;
2+ import * as Tracing from '@nativescript-community/sentry/tracing' ;
23import { Application , Trace , Utils } from '@nativescript/core' ;
34import { on as applicationOn , launchEvent } from '@nativescript/core/application' ;
45import Vue from 'nativescript-vue' ;
@@ -13,14 +14,24 @@ async function startSentry() {
1314 Sentry . init ( {
1415 dsn : SENTRY_DSN ,
1516 debug : true ,
17+ enablePerformanceV2 : true ,
18+ release : `${ __APP_ID__ } @${ __APP_VERSION__ } +${ __APP_BUILD_NUMBER__ } ` ,
19+ dist : `${ __APP_BUILD_NUMBER__ } .${ __ANDROID__ ? 'android' : 'ios' } ` ,
1620 flushSendEvent : true ,
1721 enableNativeCrashHandling : true ,
18- enableAutoPerformanceTracking : false ,
19- enableAutoSessionTracking : false ,
20- enablePerformanceV2 : true ,
2122 attachScreenshot : true ,
22- release : `${ __APP_ID__ } @${ __APP_VERSION__ } +${ __APP_BUILD_NUMBER__ } ` ,
23- dist : `${ __APP_BUILD_NUMBER__ } .${ __ANDROID__ ? 'android' : 'ios' } `
23+ tracesSampleRate : 1.0 ,
24+ sampleRate : 1.0 ,
25+ enableAutoPerformanceTracking : true ,
26+ enableAutoSessionTracking : true ,
27+ integrations : [
28+ new Tracing . NativescriptTracing ( {
29+ enableAppStartTracking : true ,
30+ enableNativeFramesTracking : true ,
31+ // routingInstrumentation: HttpService.sentryTracing,
32+ enableStallTracking : true ,
33+ } ) ,
34+ ] ,
2435 } ) ;
2536 setTimeout ( ( ) => {
2637 Sentry . withScope ( scope => {
0 commit comments