diff --git a/CHANGELOG.md b/CHANGELOG.md index 7714e6d3..5f1a49d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 0.90.73 (12-15-2020) +- Removed complexity in code for http server +- Removed internal cache functionality (not useful, needs refactor) +- Merged PR https://github.com/statping/statping/pull/909 +- Merged PR https://github.com/statping/statping/pull/880 +- Merged PR https://github.com/statping/statping/pull/859 + # 0.90.72 (10-28-2020) - Fixed issue with graphs becoming stuck on reload diff --git a/frontend/config/sentry.properties b/frontend/config/sentry.properties index f3cd274e..20eefd4d 100644 --- a/frontend/config/sentry.properties +++ b/frontend/config/sentry.properties @@ -1,6 +1,6 @@ [defaults] org=Statping -project=statping_frontend +project=frontend url=https://sentry.statping.com [auth] diff --git a/frontend/package.json b/frontend/package.json index 46b06aac..dcb28786 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,6 +21,8 @@ "@fortawesome/vue-fontawesome": "^0.1.9", "@sentry/browser": "^5.20.1", "@sentry/integrations": "^5.20.1", + "@sentry/tracing": "^5.29.0", + "@sentry/vue": "^5.29.0", "apexcharts": "^3.6.6", "axios": "^0.19.1", "codemirror-colorpicker": "^1.9.66", diff --git a/frontend/src/API.js b/frontend/src/API.js index deb0152f..622559ee 100644 --- a/frontend/src/API.js +++ b/frontend/src/API.js @@ -200,14 +200,6 @@ class Api { return axios.get('api/renew').then(response => (response.data)) } - async cache() { - return axios.get('api/cache').then(response => (response.data)) - } - - async clearCache() { - return axios.get('api/clear_cache').then(response => (response.data)) - } - async logs() { return axios.get('api/logs').then(response => (response.data)) || [] } diff --git a/frontend/src/components/Dashboard/Cache.vue b/frontend/src/components/Dashboard/Cache.vue deleted file mode 100644 index 5a0e3f38..00000000 --- a/frontend/src/components/Dashboard/Cache.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - Cache - - There are no cached pages yet! - - - - URL - Size - Expiration - - - - - - {{cache.url}} - {{cache.size}} - {{ago(cache.expiration)}} - - - - - Clear Cache - - - - - - - - diff --git a/frontend/src/main.js b/frontend/src/main.js index ee918dcd..b5090979 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -6,14 +6,14 @@ import VueClipboard from 'vue-clipboard2' import VueCookies from 'vue-cookies' import VueI18n from 'vue-i18n' import * as Sentry from "@sentry/browser"; -import * as Integrations from "@sentry/integrations"; +import { Integrations as TracingIntegrations } from "@sentry/tracing"; import router from './routes' import "./mixin" import "./icons" import store from './store' import language from './languages' -const errorReporter = "https://bed4d75404924cb3a799e370733a1b64@sentry.statping.com/3" +const errorReporter = "https://f674a4b91578476a99809f1dea56b63b@sentry.statping.com/3" const App = () => import(/* webpackChunkName: "index" */ '@/App.vue') @@ -33,8 +33,11 @@ const i18n = new VueI18n({ Vue.$cookies.config('3d') Sentry.init({ + Vue: Vue, dsn: errorReporter, - integrations: [new Integrations.Vue({Vue, attachProps: true, logErrors: true})], + integrations: [new TracingIntegrations.BrowserTracing()], + tracesSampleRate: 0.2, + environment: process.env.NODE_ENV === 'production' ? 'production' : 'development', }); Vue.config.productionTip = process.env.NODE_ENV !== 'production' diff --git a/frontend/src/pages/Index.vue b/frontend/src/pages/Index.vue index 78197ea8..3419075d 100644 --- a/frontend/src/pages/Index.vue +++ b/frontend/src/pages/Index.vue @@ -39,6 +39,7 @@