fix(sentry): enlight removing replay and cleaning useless error
This commit is contained in:
parent
a12bd59352
commit
bc5129f7bf
2 changed files with 2 additions and 7 deletions
|
|
@ -55,11 +55,6 @@ export async function deleteFcmToken() {
|
|||
} catch (error) {
|
||||
const errorData = { error: error.message, stack: error.stack };
|
||||
fcmLogger.error("Token deletion failed", errorData);
|
||||
|
||||
Sentry.withScope((scope) => {
|
||||
scope.setExtra("errorDetails", errorData);
|
||||
Sentry.captureException(new Error("Failed to delete FCM token"));
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,8 +125,8 @@ const initializeSentry = async () => {
|
|||
}
|
||||
return breadcrumb;
|
||||
},
|
||||
replaysSessionSampleRate: 0.1,
|
||||
replaysOnErrorSampleRate: 1.0,
|
||||
replaysSessionSampleRate: 0,
|
||||
replaysOnErrorSampleRate: 0,
|
||||
integrations: [
|
||||
// Sentry.mobileReplayIntegration({
|
||||
// maskAllText: false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue