Skip to content

Commit

Permalink
added Sentry
Browse files Browse the repository at this point in the history
Signed-off-by: Daryn St. Pierre <[email protected]>
  • Loading branch information
Daryn St. Pierre committed Jul 29, 2020
1 parent a4de5b3 commit 33486c0
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 8 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VUE_APP_DATA_TIMEOUT=500
VUE_SENTRY_DSN=https://[email protected]/5356675
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"@kongponents/ktoaster": "0.0.1-beta.4",
"@kongponents/ktoggle": "^0.1.1",
"@kongponents/styles": "^0.1.2",
"@sentry/browser": "^5.20.1",
"@sentry/integrations": "^5.20.1",
"axios": "^0.19.0",
"axios-mock-adapter": "^1.17.0",
"core-js": "^2.6.5",
Expand Down
28 changes: 20 additions & 8 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ import Store from '@/store'
import axios from 'axios'
import Kuma from '@/services/kuma'

// Globally import all Kongponents
/** Sentry */
import * as Sentry from '@sentry/browser'
import { Vue as VueIntegration } from '@sentry/integrations'

/** Kongponents */
import './kongponents'

// Third party styles
/** Tailwind */
import '@/assets/styles/third-party/tailwind.css'

// Kong Manager styles
/** Styles */
import '@/assets/styles/kong-manager/inputs.css'

// Kuma styles
import '@/assets/styles/variables.css'
import '@/assets/styles/utilities.css'
import '@/assets/styles/fonts.css'
Expand All @@ -25,11 +27,21 @@ import '@/assets/styles/inputs.css'
import '@/assets/styles/components.css'
import '@/assets/styles/transitions.css'

// const kuma = new Kuma({
// url: process.env.VUE_APP_KUMA_API || false
// })
/** Initiate Sentry */
Sentry.init({
dsn: process.env.VUE_SENTRY_DSN,
integrations: [
new VueIntegration({
Vue,
attachProps: true,
logErrors: true
})
]
})

/** Initiate plugins */
Vue.use(VueMeta)

Vue.config.productionTip = false

/**
Expand Down
66 changes: 66 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,67 @@
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b"
integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==

"@sentry/browser@^5.20.1":
version "5.20.1"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-5.20.1.tgz#be59522d0914d58309e1367d997d4b3cd5385d7e"
integrity sha512-ClykuvrEsMKgAvifx5VHzRjchwYbJFX8YiIicYx+Wr3MXL2jLG6OEfHHJwJeyBL2C3vxd5O0KPK3pGMR9wPMLA==
dependencies:
"@sentry/core" "5.20.1"
"@sentry/types" "5.20.1"
"@sentry/utils" "5.20.1"
tslib "^1.9.3"

"@sentry/[email protected]":
version "5.20.1"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.20.1.tgz#857cc7186931c37ff032a1bcb573600ebacde961"
integrity sha512-gG622/UY2TePruF6iUzgVrbIX5vN8w2cjlWFo1Est8MvCfQsz8agGaLMCAyl5hCGJ6K2qTUZDOlbCNIKoMclxg==
dependencies:
"@sentry/hub" "5.20.1"
"@sentry/minimal" "5.20.1"
"@sentry/types" "5.20.1"
"@sentry/utils" "5.20.1"
tslib "^1.9.3"

"@sentry/[email protected]":
version "5.20.1"
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.20.1.tgz#05e83ba972a96e9d7225a64c7d3728aa9fcefc4e"
integrity sha512-Nv5BXf14BEc08acDguW6eSqkAJLVf8wki283FczEvTsQZZuSBHM9cJ5Hnehr6n+mr8wWpYLgUUYM0oXXigUmzQ==
dependencies:
"@sentry/types" "5.20.1"
"@sentry/utils" "5.20.1"
tslib "^1.9.3"

"@sentry/integrations@^5.20.1":
version "5.20.1"
resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-5.20.1.tgz#c42dd53c2162b96bf4da641cd1c2bd53c0bbdce3"
integrity sha512-VpeZHYT8Fvw1J5478MqXXORf3Ftpt34YM4e+sTPuGrmf4Gro7lXdyownqiSaa7kwwNVQEV3zMlRDczVZzXQThw==
dependencies:
"@sentry/types" "5.20.1"
"@sentry/utils" "5.20.1"
tslib "^1.9.3"

"@sentry/[email protected]":
version "5.20.1"
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.20.1.tgz#2e2b63d9cd265b7e2f593f3eab4e9874bd87eeef"
integrity sha512-2PeJKDTHNsUd1jtSLQBJ6oRI+xrIJrYDQmsyK/qs9D7HqHfs+zNAMUjYseiVeSAFGas5IcNSuZbPRV4BnuoZ0w==
dependencies:
"@sentry/hub" "5.20.1"
"@sentry/types" "5.20.1"
tslib "^1.9.3"

"@sentry/[email protected]":
version "5.20.1"
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.20.1.tgz#ccc4fa4c9d0f94d93014b04e674762d5d5cd30a2"
integrity sha512-OU+i/lcjGpDJv0XkNpsKrI2r1VPp8qX0H6Knq8NuZrlZe3AbvO3jRJJK0pH14xFv8Xok5jbZZpKKoQLxYfxqsw==

"@sentry/[email protected]":
version "5.20.1"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.20.1.tgz#68cfae0d0e3b321b4649b59f30265024b29eae63"
integrity sha512-dhK6IdO6g7Q2CoxCbB+q8gwUapDUH5VjraFg0UBzgkrtNhtHLylqmwx0sWQvXCcp14Q/3MuzEbb4euvoh8o8oA==
dependencies:
"@sentry/types" "5.20.1"
tslib "^1.9.3"

"@soda/friendly-errors-webpack-plugin@^1.7.1":
version "1.7.1"
resolved "https://registry.yarnpkg.com/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.7.1.tgz#706f64bcb4a8b9642b48ae3ace444c70334d615d"
Expand Down Expand Up @@ -10787,6 +10848,11 @@ tslib@^1.9.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35"
integrity sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==

tslib@^1.9.3:
version "1.13.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043"
integrity sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==

[email protected]:
version "0.0.0"
resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"
Expand Down

0 comments on commit 33486c0

Please sign in to comment.