Skip to content

Commit

Permalink
Merge pull request #5 from abdullah4tech/main-1
Browse files Browse the repository at this point in the history
feat: Initialize Sentry for error tracking and performance monitoring.
  • Loading branch information
abdullah4tech authored Oct 6, 2024
2 parents dd7fb30 + 2455c56 commit df70009
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,37 @@ import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as Sentry from '@sentry/vue';

import App from './App.vue'
import router from './router'

const app = createApp(App)

Sentry.init({
app,
dsn: "https://c76145841f23714087313e3c4a4d3be2@o4507877326520320.ingest.us.sentry.io/4507877331107840",
integrations: [
Sentry.browserTracingIntegration({ router }),
Sentry.replayIntegration(),
],

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,

// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
tracePropagationTargets: ["localhost", /^https:\/\/backend-aurh-production\.up\.railway\.app/],

// Capture Replay for 10% of all sessions,
// plus for 100% of sessions with an error
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});

app.use(createPinia())
app.use(router)

app.mount('#app')

0 comments on commit df70009

Please sign in to comment.