Skip to content

Commit d7beba8

Browse files
author
farfromrefuge
committed
chore: demo
1 parent d6a6929 commit d7beba8

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ext {
2-
sentryVersion = "7.1.0"
3-
sentryGradleVersion = "4.1.0"
2+
// sentryVersion = "7.1.0"
3+
// sentryGradleVersion = "4.1.0"
44
}

demo-vue/app/main.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as Sentry from '@nativescript-community/sentry';
2+
import * as Tracing from '@nativescript-community/sentry/tracing';
23
import { Application, Trace, Utils } from '@nativescript/core';
34
import { on as applicationOn, launchEvent } from '@nativescript/core/application';
45
import 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

Comments
 (0)