Skip to content

Commit

Permalink
Dev sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Sep 30, 2023
1 parent f586e54 commit 1fffac0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/assets/images/IconLoadingSpin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,25 @@ app.config.globalProperties.emitter = emitter;
app.config.devtools = true;
global.emitter = emitter;

Sentry.init({
app,
dsn: "https://052d20b68586c85c90b4e454bbf85a69@o4505946910949376.ingest.sentry.io/4505946978910208",
integrations: [
new Sentry.BrowserTracing({
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/],
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
}),
new Sentry.Replay(),
],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
// Session Replay
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
});


app.mount('#app');

const footerApp = createApp(Footer)
Expand Down

0 comments on commit 1fffac0

Please sign in to comment.