Skip to content

Commit

Permalink
Merge pull request #315 from oslokommune/remove-sentry
Browse files Browse the repository at this point in the history
Remove Sentry integration
  • Loading branch information
petterhj authored Jun 11, 2024
2 parents 4e1ad5f + 3fe7067 commit 27a76d5
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 137 deletions.
120 changes: 0 additions & 120 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"dependencies": {
"@oslokommune/punkt-assets": "^11.0.1",
"@oslokommune/punkt-vue": "^11.0.1",
"@sentry/vue": "^8.5.0",
"@unhead/vue": "^1.9.11",
"@vitejs/plugin-vue": "^5.0.4",
"@vue-a11y/skip-to": "^3.0.3",
Expand Down
1 change: 0 additions & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const envs = JSON.stringify({
NODE_ENV: process.env.NODE_ENV,
VITE_GOOGLE_ANALYTICS_ID: process.env.VITE_GOOGLE_ANALYTICS_ID,
VITE_PRODUCTION_DATA: process.env.VITE_PRODUCTION_DATA,
VITE_SENTRY_DSN: process.env.VITE_SENTRY_DSN,
VITE_INFO_SHOW: process.env.VITE_SHOW_INFO,
VITE_INFO_MESSAGE: process.env.VITE_INFO_MESSAGE,
});
Expand Down
2 changes: 0 additions & 2 deletions src/components/GraphInstance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
<script>
import axios from 'axios';
import { mean } from 'd3';
import * as Sentry from '@sentry/vue';
import { mapState } from 'vuex';
import { dragscroll } from 'vue-dragscroll';
import TemplateBars from '@/util/graph-templates/templateBars';
Expand Down Expand Up @@ -260,7 +259,6 @@ export default {
this.error = true;
this.errorMessage = this.$t('error.connectionLost');
this.loading = false;
Sentry.captureException(err);
return;
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/VLeaflet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
</template>

<script>
/* eslint-disable no-continue */
import * as Sentry from '@sentry/vue';
import axios from 'axios';
import L from 'leaflet';
import { sum, select, scaleLinear } from 'd3';
Expand Down Expand Up @@ -172,7 +170,7 @@ export default {
this.meta = data[0].meta;
this.data = data[0].data;
} catch (err) {
Sentry.captureException(err);
console.error(err);
return;
}
Expand Down
10 changes: 0 additions & 10 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createApp } from 'vue';
import { VueHeadMixin, createHead } from '@unhead/vue';
import VueGtag from 'vue-gtag';
import Vue3Resize from 'vue3-resize';
import * as Sentry from '@sentry/vue';
import VueSkipTo from '@vue-a11y/skip-to';
import '@vue-a11y/skip-to/dist/style.css';
import './util/polyfills';
Expand Down Expand Up @@ -43,13 +42,4 @@ app.use(VueGtag, {
router,
});

if (production) {
Sentry.init({
app,
dsn: production ? envs.VITE_SENTRY_DSN : import.meta.env.VITE_SENTRY_DSN,
logErrors: true,
autoSessionTracking: false,
});
}

app.mount('#app');

0 comments on commit 27a76d5

Please sign in to comment.