From ad37f450c270a1d1861b173aa51b71da9f3bc3cc Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Fri, 22 Nov 2024 13:26:42 -0300 Subject: [PATCH] sentry: Track application release/version --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index feb1a92f4..e6a638250 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,6 +12,8 @@ import { createPinia } from 'pinia' import { createApp } from 'vue' import VueVirtualScroller from 'vue-virtual-scroller' +import { app_version } from '@/libs/cosmos' + import App from './App.vue' import vuetify from './plugins/vuetify' import { loadFonts } from './plugins/webfontloader' @@ -30,6 +32,7 @@ if (window.localStorage.getItem('cockpit-enable-usage-statistics-telemetry') && Sentry.init({ app, dsn: 'https://d7329dcf760fa1cc9fa6c7a5f16f60a1@o4507696465707008.ingest.us.sentry.io/4507762984222720', + release: app_version.version, integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()], sampleRate: 1.0, // Capture all errors tracesSampleRate: 1.0, // Capture all traces