Skip to content

Commit 27a76d5

Browse files
authored
Merge pull request #315 from oslokommune/remove-sentry
Remove Sentry integration
2 parents 4e1ad5f + 3fe7067 commit 27a76d5

File tree

6 files changed

+1
-137
lines changed

6 files changed

+1
-137
lines changed

package-lock.json

Lines changed: 0 additions & 120 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"dependencies": {
3737
"@oslokommune/punkt-assets": "^11.0.1",
3838
"@oslokommune/punkt-vue": "^11.0.1",
39-
"@sentry/vue": "^8.5.0",
4039
"@unhead/vue": "^1.9.11",
4140
"@vitejs/plugin-vue": "^5.0.4",
4241
"@vue-a11y/skip-to": "^3.0.3",

server/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const envs = JSON.stringify({
1616
NODE_ENV: process.env.NODE_ENV,
1717
VITE_GOOGLE_ANALYTICS_ID: process.env.VITE_GOOGLE_ANALYTICS_ID,
1818
VITE_PRODUCTION_DATA: process.env.VITE_PRODUCTION_DATA,
19-
VITE_SENTRY_DSN: process.env.VITE_SENTRY_DSN,
2019
VITE_INFO_SHOW: process.env.VITE_SHOW_INFO,
2120
VITE_INFO_MESSAGE: process.env.VITE_INFO_MESSAGE,
2221
});

src/components/GraphInstance.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
<script>
5959
import axios from 'axios';
6060
import { mean } from 'd3';
61-
import * as Sentry from '@sentry/vue';
6261
import { mapState } from 'vuex';
6362
import { dragscroll } from 'vue-dragscroll';
6463
import TemplateBars from '@/util/graph-templates/templateBars';
@@ -260,7 +259,6 @@ export default {
260259
this.error = true;
261260
this.errorMessage = this.$t('error.connectionLost');
262261
this.loading = false;
263-
Sentry.captureException(err);
264262
return;
265263
}
266264
}

src/components/VLeaflet.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
</template>
1717

1818
<script>
19-
/* eslint-disable no-continue */
20-
import * as Sentry from '@sentry/vue';
2119
import axios from 'axios';
2220
import L from 'leaflet';
2321
import { sum, select, scaleLinear } from 'd3';
@@ -172,7 +170,7 @@ export default {
172170
this.meta = data[0].meta;
173171
this.data = data[0].data;
174172
} catch (err) {
175-
Sentry.captureException(err);
173+
console.error(err);
176174
return;
177175
}
178176

src/main.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { createApp } from 'vue';
22
import { VueHeadMixin, createHead } from '@unhead/vue';
33
import VueGtag from 'vue-gtag';
44
import Vue3Resize from 'vue3-resize';
5-
import * as Sentry from '@sentry/vue';
65
import VueSkipTo from '@vue-a11y/skip-to';
76
import '@vue-a11y/skip-to/dist/style.css';
87
import './util/polyfills';
@@ -43,13 +42,4 @@ app.use(VueGtag, {
4342
router,
4443
});
4544

46-
if (production) {
47-
Sentry.init({
48-
app,
49-
dsn: production ? envs.VITE_SENTRY_DSN : import.meta.env.VITE_SENTRY_DSN,
50-
logErrors: true,
51-
autoSessionTracking: false,
52-
});
53-
}
54-
5545
app.mount('#app');

0 commit comments

Comments
 (0)