patch crash report

This commit is contained in:
pa
2026-01-13 15:03:32 +09:00
committed by Natsumi
parent 77a838e22d
commit d67fbd3262
2 changed files with 4 additions and 2 deletions

View File

@@ -121,8 +121,10 @@ async function registerSentryPiniaPlugin() {
}
export async function initPiniaPlugins() {
registerPiniaActionTrailPlugin();
await registerSentryPiniaPlugin();
setTimeout(() => {
registerPiniaActionTrailPlugin();
}, 60000);
}
export function createGlobalStores() {

View File

@@ -544,7 +544,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
scope.setTag('reason', 'crash-recovery');
scope.setContext('pinia_actions', {
trailText,
count: trail.length
sessionTime: performance.now() / 1000 / 60
});
Sentry.captureMessage(
`crash message: ${crashMessage}`