import * as Sentry from '@sentry/react-native';
import Config from '@/libs/config';
import User from '@/types/User';
here is my code when I try to display the replay sessions it does not work can someone help me please
export const initSentry = () => Sentry.init({
dsn: Config.sentryDsn,
debug: true,
environment: Config.environment,
_experiments: {
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
},
integrations: [Sentry.mobileReplayIntegration({
maskAllText: true,
maskAllImages: true,
maskAllVectors: true,
})],
tracesSampleRate: 1.0,
});
export const setUserSentry = (user: User) => {
Sentry.setUser({
id: user.id,
name: user.name,
role: user.roles.join(', '),
company: user.company,
});
};