diff --git a/src/localization/en.json b/src/localization/en.json index 8fc88b04..dfb1ea94 100644 --- a/src/localization/en.json +++ b/src/localization/en.json @@ -1966,7 +1966,7 @@ "delete_failed": "Failed to delete screenshot metadata" }, "crash": { - "vrcx_crash": "VRCX has recovered from a crash." + "vrcx_reload": "VRCX was reloaded for stability" } }, "prompt": { diff --git a/src/plugin/sentry.js b/src/plugin/sentry.js index 26d1bbd5..a8763a4d 100644 --- a/src/plugin/sentry.js +++ b/src/plugin/sentry.js @@ -48,7 +48,7 @@ export async function initSentry(app) { release: version, replaysSessionSampleRate: 0, replaysOnErrorSampleRate: 1.0, - tracesSampleRate: 0.001, + tracesSampleRate: 0.0001, beforeSend(event, hint) { const error = hint.originalException; if (error && typeof error.message === 'string') { diff --git a/src/stores/vrcx.js b/src/stores/vrcx.js index b6b31014..8e9e7cb6 100644 --- a/src/stores/vrcx.js +++ b/src/stores/vrcx.js @@ -531,10 +531,14 @@ export const useVrcxStore = defineStore('Vrcx', () => { if (command.startsWith('crash/')) { const crashMessage = command.replace('crash/', ''); console.error('VRCX recovered from crash:', crashMessage); - ElMessageBox.alert( - crashMessage, - t('message.crash.vrcx_crash') - ).catch(() => {}); + const Sentry = await import('@sentry/vue'); + Sentry.captureMessage(`crash message: ${crashMessage}`, { + level: 'fatal' + }); + ElMessage({ + message: t('message.crash.vrcx_reload'), + type: 'success' + }); return; } eventLaunchCommand(command);