Skip to content

Commit 33fe98c

Browse files
authored
Remove sentry (#3453)
1 parent 9afbb5b commit 33fe98c

File tree

10 files changed

+1
-240
lines changed

10 files changed

+1
-240
lines changed

auth-web/.env.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ VUE_APP_KEYCLOAK_AUTH_URL="https://dev.loginproxy.gov.bc.ca/auth"
6767
VUE_APP_KEYCLOAK_REALM="bcregistry"
6868
VUE_APP_KEYCLOAK_CLIENTID="connect-web"
6969

70-
#vaults sentry
71-
VUE_APP_SENTRY_DSN=
72-
7370
#vaults hotjar
7471
VUE_APP_HOTJAR_ID=
7572

auth-web/.env.test.example

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,5 @@ VUE_APP_KEYCLOAK_AUTH_URL="https://test.loginproxy.gov.bc.ca/auth"
6767
VUE_APP_KEYCLOAK_REALM="bcregistry"
6868
VUE_APP_KEYCLOAK_CLIENTID="connect-web"
6969

70-
#vaults sentry
71-
VUE_APP_SENTRY_DSN=
72-
7370
#vaults hotjar
7471
VUE_APP_HOTJAR_ID=

auth-web/devops/vaults.env

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ VUE_APP_KEYCLOAK_AUTH_URL="op://keycloak/$APP_ENV/base/KEYCLOAK_AUTH_BASE_URL"
6767
VUE_APP_KEYCLOAK_REALM="op://keycloak/$APP_ENV/base/KEYCLOAK_REALMNAME"
6868
VUE_APP_KEYCLOAK_CLIENTID="op://keycloak/$APP_ENV/account-web/UI_KEYCLOAK_RESOURCE_NAME"
6969

70-
#vaults sentry
71-
VUE_APP_SENTRY_DSN="op://sentry/$APP_ENV/relationship-web/SENTRY_DSN"
72-
7370
#vaults hotjar
7471
VUE_APP_HOTJAR_ID="op://hotjar/$APP_ENV/auth-web/HOTJAR_ID"
7572

auth-web/package-lock.json

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

auth-web/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"@bcrs-shared-components/interfaces": "1.1.13",
2525
"@bcrs-shared-components/jurisdiction": "1.1.4",
2626
"@mdi/font": "^4.5.95",
27-
"@sentry/vue": "^8.33.1",
2827
"@vue/compiler-dom": "^3.2.45",
2928
"@vue/composition-api": "^1.7.1",
3029
"axios": "^1.7.4",

auth-web/src/main.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import './composition-api-setup' // ensure this happens before any imports trigger use of composition-api
22
import '@mdi/font/css/materialdesignicons.min.css' // icon library (https://materialdesignicons.com/)
3-
import * as Sentry from '@sentry/vue'
43
import { PiniaVuePlugin, createPinia, setActivePinia } from 'pinia'
54
import App from './App.vue'
65
import CommonUtils from '@/util/common-util'
@@ -21,9 +20,6 @@ import initializeI18n from './plugins/i18n'
2120
import router from './routes/index'
2221
import vuetify from './plugins/vuetify'
2322

24-
// eslint-disable-next-line sort-imports
25-
import { LDFlags } from '@/util/constants'
26-
2723
Vue.use(VueCompositionAPI)
2824
Vue.use(PiniaVuePlugin)
2925
const pinia = createPinia()
@@ -52,15 +48,6 @@ ConfigHelper.saveConfigToSessionStorage().then(async () => {
5248
// addressCompleteKey is for canada post address lookup, which is to be used in sbc-common-components
5349
(<any>window).addressCompleteKey = ConfigHelper.getAddressCompleteKey()
5450

55-
if (LaunchDarklyService.getFlag(LDFlags.SentryEnable)) {
56-
// initialize Sentry
57-
console.info('Initializing Sentry...') // eslint-disable-line no-console
58-
Sentry.init({
59-
Vue,
60-
dsn: ConfigHelper.getSentryDsn()
61-
})
62-
}
63-
6451
// initialize Hotjar
6552
const hotjarId = ConfigHelper.getHotjarId();
6653
(<any>window).hotJarId = hotjarId

auth-web/src/util/config-helper.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,6 @@ export default class ConfigHelper {
199199
return `${import.meta.env.VUE_APP_AUTH_LD_CLIENT_ID}`
200200
}
201201

202-
static getSentryDsn () {
203-
return `${import.meta.env.VUE_APP_SENTRY_DSN}`
204-
}
205-
206202
static getAddressCompleteKey () {
207203
return `${import.meta.env.VUE_APP_ADDRESS_COMPLETE_KEY}`
208204
}

auth-web/src/util/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ export enum LDFlags {
489489
ProductWillsStatus = 'product-VS-status',
490490
SupportedAmalgamationEntities = 'supported-amalgamation-entities',
491491
SupportedContinuationInEntities = 'supported-continuation-in-entities',
492-
SentryEnable = 'sentry-enable',
493492
SupportRestorationEntities = 'supported-restoration-entities',
494493
AllowableBusinessSearchTypes = 'allowable-business-search-types',
495494
AllowableBusinessPasscodeTypes = 'allowable-business-passcode-types',

auth-web/src/util/http-util.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as Sentry from '@sentry/browser'
21
import Axios from 'axios'
32
import ConfigHelper from '@/util/config-helper'
43
import { SessionStorageKeys } from '@/util/constants'
@@ -32,7 +31,6 @@ axios.interceptors.request.use(
3231
axios.interceptors.response.use(
3332
response => response,
3433
error => {
35-
Sentry.captureException(error)
3634
return Promise.reject(error)
3735
}
3836
)

auth-web/tests/unit/components/AccountInfo.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('AccountInfo.vue', () => {
177177
template: '<div />'
178178
}
179179
const $t = () => `test`
180-
180+
181181
wrapper = mount(AccountInfo, {
182182
localVue,
183183
vuetify,

0 commit comments

Comments
 (0)