Add sentry.

This commit is contained in:
Patrick Fic
2025-10-29 10:53:58 -07:00
parent 72ff11ceab
commit accfb7a38c
9 changed files with 380 additions and 7 deletions

22
App.js
View File

@@ -1,4 +1,5 @@
import { ApolloProvider } from "@apollo/client";
import * as Sentry from '@sentry/react-native';
import "expo-asset";
import 'expo-dev-client';
import "intl";
@@ -11,6 +12,25 @@ import { client } from "./graphql/client";
import { persistor, store } from "./redux/store";
import "./translations/i18n";
Sentry.init({
dsn: 'https://8d6c3de1940a4e4f8b81cf4d2150bdea@o492140.ingest.us.sentry.io/5558869',
// Adds more context data to events (IP address, cookies, user, etc.)
// For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/
sendDefaultPii: true,
// Enable Logs
enableLogs: true,
// Configure Session Replay
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1,
integrations: [Sentry.mobileReplayIntegration(), Sentry.feedbackIntegration()],
ignoreErrors: [/.*Network Error.*/i]
// uncomment the line below to enable Spotlight (https://spotlightjs.com)
// spotlight: __DEV__,
});
// Sentry.init({
// dsn: "https://8d6c3de1940a4e4f8b81cf4d2150bdea@o492140.ingest.sentry.io/5558869",
// enableInExpoDevelopment: true,
@@ -39,4 +59,4 @@ const App = () => {
);
}
export default App;
export default Sentry.wrap(App);