Removed sentry tracing and before events are sent we console.error log them and in dev disable all events.
This commit is contained in:
@@ -5,7 +5,6 @@ import Vinlottis from "@/Vinlottis";
|
|||||||
|
|
||||||
import * as Sentry from "@sentry/browser";
|
import * as Sentry from "@sentry/browser";
|
||||||
import { Vue as VueIntegration } from "@sentry/integrations";
|
import { Vue as VueIntegration } from "@sentry/integrations";
|
||||||
import { Integrations } from "@sentry/tracing";
|
|
||||||
|
|
||||||
Vue.use(VueRouter);
|
Vue.use(VueRouter);
|
||||||
|
|
||||||
@@ -13,12 +12,15 @@ const ENV = window.location.href.includes("localhost") ? "development" : "produc
|
|||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: "https://7debc951f0074fb68d7a76a1e3ace6fa@o364834.ingest.sentry.io/4905091",
|
dsn: "https://7debc951f0074fb68d7a76a1e3ace6fa@o364834.ingest.sentry.io/4905091",
|
||||||
integrations: [
|
integrations: [
|
||||||
new VueIntegration({
|
new VueIntegration({ Vue })
|
||||||
Vue,
|
],
|
||||||
tracing: true
|
beforeSend: event => {
|
||||||
}),
|
console.error(event);
|
||||||
new Integrations.BrowserTracing(),
|
if (ENV) {
|
||||||
]
|
return null;
|
||||||
|
}
|
||||||
|
return event;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Add global GA variables
|
// Add global GA variables
|
||||||
|
|||||||
Reference in New Issue
Block a user