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
+3 -1
View File
@@ -121,8 +121,10 @@ async function registerSentryPiniaPlugin() {
} }
export async function initPiniaPlugins() { export async function initPiniaPlugins() {
registerPiniaActionTrailPlugin();
await registerSentryPiniaPlugin(); await registerSentryPiniaPlugin();
setTimeout(() => {
registerPiniaActionTrailPlugin();
}, 60000);
} }
export function createGlobalStores() { export function createGlobalStores() {
+1 -1
View File
@@ -544,7 +544,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
scope.setTag('reason', 'crash-recovery'); scope.setTag('reason', 'crash-recovery');
scope.setContext('pinia_actions', { scope.setContext('pinia_actions', {
trailText, trailText,
count: trail.length sessionTime: performance.now() / 1000 / 60
}); });
Sentry.captureMessage( Sentry.captureMessage(
`crash message: ${crashMessage}` `crash message: ${crashMessage}`