Skip to content

Commit

Permalink
sentry: Track application release/version
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl authored and ArturoManzoli committed Nov 27, 2024
1 parent 52b5ab7 commit dd058da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit dd058da

Please sign in to comment.