@@ -9,6 +9,7 @@ import JsonViewer from 'vue-json-viewer'
9
9
import VueTooltipDirective from 'vue-tooltip-directive'
10
10
import VueDraggable from 'vuedraggable'
11
11
import Vuetify from 'vuetify/lib'
12
+ import * as Sentry from "@sentry/vue" ;
12
13
13
14
import App from './App.vue'
14
15
import DefaultTooltip from './components/common/DefaultTooltip.vue'
@@ -33,6 +34,28 @@ Vue.component('VTour', VTour)
33
34
Vue . component ( 'VStep' , VStep )
34
35
Vue . prototype . $tours = { }
35
36
37
+ const project = 'BlueOS'
38
+ // Avoid logging local development
39
+ const version = import . meta?. env ?. VITE_APP_GIT_DESCRIBE
40
+ const release = `${ project } @${ version } `
41
+ console . info ( `Running: ${ release } ` )
42
+ if ( version ) {
43
+ Sentry . init ( {
44
+ Vue,
45
+ release : release ,
46
+ dsn : "https://d87285a04a74f71aac13445f60506708@o4507696465707008.ingest.us.sentry.io/4507765318615040" ,
47
+ integrations : [
48
+ Sentry . browserTracingIntegration ( { router } ) ,
49
+ Sentry . replayIntegration ( ) ,
50
+ ] ,
51
+ tracesSampleRate : 1.0 ,
52
+ tracePropagationTargets : [ ] ,
53
+ replaysSessionSampleRate : 0.1 ,
54
+ replaysOnErrorSampleRate : 1.0 ,
55
+ transport : Sentry . makeBrowserOfflineTransport ( Sentry . makeFetchTransport ) ,
56
+ } )
57
+ }
58
+
36
59
new Vue ( {
37
60
router,
38
61
store,
0 commit comments