Debug statistics modules in dev mode

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-08-29 16:52:00 +02:00
parent eb7c6d339f
commit d43e7f2c34
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 4 additions and 1 deletions

View file

@ -9,5 +9,6 @@ export const matomo = (environment: any, matomoConfiguration: any) => {
environment.app.use(VueMatomo, { environment.app.use(VueMatomo, {
...matomoConfiguration, ...matomoConfiguration,
router: environment.router, router: environment.router,
debug: import.meta.env.DEV,
}); });
}; };

View file

@ -12,12 +12,13 @@ export const sentry = (environment: any, sentryConfiguration: any) => {
Sentry.init({ Sentry.init({
app: environment.app, app: environment.app,
dsn: sentryConfiguration.dsn, dsn: sentryConfiguration.dsn,
debug: import.meta.env.DEV,
integrations: [ integrations: [
new Integrations.BrowserTracing({ new Integrations.BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation( routingInstrumentation: Sentry.vueRouterInstrumentation(
environment.router environment.router
), ),
tracingOrigins: ["localhost", "mobilizon1.com", /^\//], tracingOrigins: [window.origin, /^\//],
}), }),
], ],
beforeSend(event) { beforeSend(event) {
@ -33,6 +34,7 @@ export const sentry = (environment: any, sentryConfiguration: any) => {
// We recommend adjusting this value in production // We recommend adjusting this value in production
tracesSampleRate: sentryConfiguration.tracesSampleRate, tracesSampleRate: sentryConfiguration.tracesSampleRate,
release: environment.version, release: environment.version,
logErrors: true,
}); });
}; };