Skip to content

Commit

Permalink
Add App version to sentry init
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Jud committed May 19, 2024
1 parent 4d4b4cc commit 882fd0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as Sentry from '@sentry/react';
import ReactDOM from 'react-dom/client';
import { Provider } from 'react-redux';
import packageJson from '../package.json';
import App from './App';
import Notification from './components/common/Notification';
import { NotificationContextProvider } from './contexts/NotificationContextProvider';
Expand All @@ -9,13 +10,16 @@ import './index.css';
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
import { store } from './store/store';

const appVersion = 'kitze@' + packageJson.version;

Sentry.init({
dsn: 'https://5ac8b96b19276d1328619195bddd25aa@o4507284505886720.ingest.de.sentry.io/4507284508180560',
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
tracesSampleRate: 1.0,
tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
release: appVersion,
});

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/A2HSInstaller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
import { useAddToHomescreenPrompt } from '../hooks/useAddToHomescreenPrompt';

const A2HSInstaller = () => {
const [open, setOpen] = useState(true);
const [open, setOpen] = useState(false);
const [prompt, promptToInstall, isInstalled] = useAddToHomescreenPrompt();

useEffect(() => {
Expand Down

0 comments on commit 882fd0a

Please sign in to comment.