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) {
|
} catch (error) {
|
||||||
const errorData = { error: error.message, stack: error.stack };
|
const errorData = { error: error.message, stack: error.stack };
|
||||||
fcmLogger.error("Token deletion failed", errorData);
|
fcmLogger.error("Token deletion failed", errorData);
|
||||||
|
|
||||||
Sentry.withScope((scope) => {
|
|
||||||
scope.setExtra("errorDetails", errorData);
|
|
||||||
Sentry.captureException(new Error("Failed to delete FCM token"));
|
|
||||||
});
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -125,8 +125,8 @@ const initializeSentry = async () => {
|
||||||
}
|
}
|
||||||
return breadcrumb;
|
return breadcrumb;
|
||||||
},
|
},
|
||||||
replaysSessionSampleRate: 0.1,
|
replaysSessionSampleRate: 0,
|
||||||
replaysOnErrorSampleRate: 1.0,
|
replaysOnErrorSampleRate: 0,
|
||||||
integrations: [
|
integrations: [
|
||||||
// Sentry.mobileReplayIntegration({
|
// Sentry.mobileReplayIntegration({
|
||||||
// maskAllText: false,
|
// maskAllText: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue