mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-27 18:31:07 +00:00
Debug statistics modules in dev mode
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
eb7c6d339f
commit
d43e7f2c34
2 changed files with 4 additions and 1 deletions
|
@ -9,5 +9,6 @@ export const matomo = (environment: any, matomoConfiguration: any) => {
|
|||
environment.app.use(VueMatomo, {
|
||||
...matomoConfiguration,
|
||||
router: environment.router,
|
||||
debug: import.meta.env.DEV,
|
||||
});
|
||||
};
|
||||
|
|
|
@ -12,12 +12,13 @@ export const sentry = (environment: any, sentryConfiguration: any) => {
|
|||
Sentry.init({
|
||||
app: environment.app,
|
||||
dsn: sentryConfiguration.dsn,
|
||||
debug: import.meta.env.DEV,
|
||||
integrations: [
|
||||
new Integrations.BrowserTracing({
|
||||
routingInstrumentation: Sentry.vueRouterInstrumentation(
|
||||
environment.router
|
||||
),
|
||||
tracingOrigins: ["localhost", "mobilizon1.com", /^\//],
|
||||
tracingOrigins: [window.origin, /^\//],
|
||||
}),
|
||||
],
|
||||
beforeSend(event) {
|
||||
|
@ -33,6 +34,7 @@ export const sentry = (environment: any, sentryConfiguration: any) => {
|
|||
// We recommend adjusting this value in production
|
||||
tracesSampleRate: sentryConfiguration.tracesSampleRate,
|
||||
release: environment.version,
|
||||
logErrors: true,
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue