📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
got rid of sentry
Blue Mouse767e865da259
diff --git a/package.json b/package.jsonindex d3f6f79c5..acd432ca5 100644--- a/package.json+++ b/package.json@@ -5,8 +5,6 @@"dependencies": {"@headlessui/react": "^1.5.0","@heroicons/react": "^1.0.6",- "@sentry/react": "^6.19.3",- "@sentry/tracing": "^6.19.3","@tailwindcss/forms": "^0.5.0","axios": "^0.26.1","billboard.js": "^3.4.0",diff --git a/src/index.js b/src/index.jsindex 72772614c..5761603b7 100644--- a/src/index.js+++ b/src/index.js@@ -7,12 +7,11 @@ import { I18nextProvider } from 'react-i18next'import { HelmetProvider } from 'react-helmet-async'import { transitions, positions, Provider as AlertProvider } from 'react-alert'import * as Swetrix from 'swetrix'-import * as Sentry from '@sentry/react'-import { Integrations } from '@sentry/tracing'import 'billboard.js/dist/billboard.min.css'import 'prismjs/themes/prism-tomorrow.css'-import { isSelfhosted, CONTACT_EMAIL } from 'redux/constants'+import { isSelfhosted } from 'redux/constants'+import CrashHandler from 'pages/CrashHandler'import AlertTemplate from 'ui/Alert'import App from './App'import i18next from './i18next'@@ -30,12 +29,6 @@ if (!isSelfhosted) {})}-Sentry.init({- dsn: 'https://[email protected]/5865898',- integrations: [new Integrations.BrowserTracing()],- tracesSampleRate: 1.0,-})-const options = {position: positions.BOTTOM_RIGHT,timeout: 8000,@@ -49,7 +42,7 @@ if (process.env.NODE_ENV !== 'production') {ReactDOM.render(<React.StrictMode>- <Sentry.ErrorBoundary fallback={<p>The app crashed, sorry about that.. :(<br />Please, tell us about it at {CONTACT_EMAIL}<br /><br />To continue using the website, please reload the page.</p>}>+ <CrashHandler><AlertProvider template={AlertTemplate} {...options}><Provider store={store}><HelmetProvider>@@ -61,7 +54,7 @@ ReactDOM.render(</HelmetProvider></Provider></AlertProvider>- </Sentry.ErrorBoundary>+ </CrashHandler></React.StrictMode>,document.getElementById('root'))diff --git a/src/pages/CrashHandler/index.js b/src/pages/CrashHandler/index.jsnew file mode 100644index 000000000..f916a8390--- /dev/null+++ b/src/pages/CrashHandler/index.js@@ -0,0 +1,58 @@+import React from 'react'+import _toString from 'lodash/toString'+import { CONTACT_EMAIL } from 'redux/constants'++class CrashHandler extends React.Component {+ constructor(props) {+ super(props)+ this.state = {+ appCrashed: false,+ crashStack: '',+ errorMessage: '',+ }+ }++ static getDerivedStateFromError(error) {+ return {+ errorMessage: _toString(error),+ crashStack: error?.stack,+ appCrashed: true,+ }+ }++ render() {+ const { appCrashed, crashStack, errorMessage } = this.state+ const { children } = this.props++ if (appCrashed) {+ return (+ <div>+ <b>+ The app crashed, sorry about that.. :(+ <br />+ Please, tell us about it at {CONTACT_EMAIL}+ <br />+ To continue using the website, please reload the page.+ </b>++ <br />+ <br />++ <p>+ Technical crash information:+ <br />+ <i>+ {errorMessage}+ <br />+ {crashStack}+ </i>+ </p>+ </div>+ )+ }++ return children+ }+}++export default CrashHandlerdiff --git a/src/pages/Privacy/index.jsx b/src/pages/Privacy/index.jsxindex 2266ec583..cb4d2d86b 100644--- a/src/pages/Privacy/index.jsx+++ b/src/pages/Privacy/index.jsx@@ -98,7 +98,6 @@ const Features = () => {The following third parties may be considered our "sub-processors" under GDPR. We only share what's required for their purpose.<br />- <b>Paddle:</b> Payment processing;<br />- <b>Cloudflare</b>: Security, hosting, cloud infrastructure;<br />- - <b>Sentry:</b> Error tracking;<br />- <b>Postmark:</b> Transactional and marketing emails;<br />- <b>Fastmail:</b> Business emails.<br />In addition to sharing with Service Providers as described above, we also may share your information with others in the following circumstances:<br />@@ -164,7 +163,7 @@ const Features = () => {<hr className='mt-10 mb-4' /><p className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>- <i>Last updated: January 24, 2022.</i>+ <i>Last updated: April 2, 2022.</i></p></div></div>