@@ -22,6 +22,7 @@ import Toast from 'react-native-toast-message';
2222
2323import { store } from './reduxApp' ;
2424import { DSN } from './config' ;
25+ import { SE } from '@env' ; // SE is undefined if no .env file is set
2526
2627const reactNavigationV5Instrumentation = new Sentry . ReactNavigationV5Instrumentation (
2728 {
@@ -37,9 +38,14 @@ Sentry.init({
3738 dsn : DSN ,
3839 environment : "dev" ,
3940 beforeSend : ( event ) => {
40- // Makes issues unique to the release (app version)
41- event . fingerprint = [ '{{ default }}' , packageJson . version ] ;
42- return event ;
41+ if ( SE === "tda" ) {
42+ // Make issues unique to the release (app version) for Release Health
43+ event . fingerprint = [ '{{ default }}' , SE , packageJson . version ] ;
44+ } else if ( SE ) {
45+ // Make issue for the SE
46+ event . fingerprint = [ '{{ default }}' , SE ] ;
47+ }
48+ return event ;
4349 } ,
4450 integrations : [
4551 new Sentry . ReactNativeTracing ( {
@@ -57,11 +63,13 @@ Sentry.init({
5763 ] ,
5864 tracesSampleRate : 1.0 ,
5965 enableAutoSessionTracking : true , // For testing, session close when 5 seconds (instead of the default 30) in the background.
60- sessionTrackingIntervalMillis : 5000 ,
66+ sessionTrackingIntervalMillis : 5000 ,
6167 maxBreadcrumbs : 150 , // Extend from the default 100 breadcrumbs.
6268 // debug: true
6369} ) ;
6470
71+ Sentry . setTag ( 'se' , SE ) ;
72+
6573const Stack = createStackNavigator ( ) ;
6674
6775const App = ( ) => {
0 commit comments