Skip to content

Commit

Permalink
Add Sentry Reply
Browse files Browse the repository at this point in the history
  • Loading branch information
brachkow committed Nov 21, 2023
1 parent 10e9e26 commit dfb839c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import FloatingVue from 'floating-vue';
import 'floating-vue/dist/style.css';

import * as Sentry from '@sentry/vue';
import { BrowserTracing } from '@sentry/tracing';

import './fonts.css';
import './tailwind.css';
Expand All @@ -21,11 +20,19 @@ if (process.env.NODE_ENV === 'production') {
app,
dsn: 'https://[email protected]/4504038554664960',
integrations: [
new BrowserTracing({
new Sentry.BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
}),
new Sentry.Replay(),
],
tracesSampleRate: 1.0,
tracePropagationTargets: [
'localhost',
/^https:\/\/lms\.tough-dev\.school\/api\//,
/^http:\/\/127\.0\.0\.1:8000\//,
],
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});
}

Expand Down

0 comments on commit dfb839c

Please sign in to comment.