Debug statistics modules in dev mode
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
eb7c6d339f
commit
d43e7f2c34
@ -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,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -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,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user